[AskJS] Are there any tools to help automatically update imports when splitting typescript libraries in a Monorepo?

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • Subsecond

    A jQuery-like syntax for typescript codemod.

  • Someone posted a really ergonomic one here a few months ago inspired by the jQuery API (don't knock it, it works well for ASTs): Subsecond.

  • jscodeshift

    A JavaScript codemod toolkit.

  • If that isn't enough or you find issues with it, the current de-facto standard for codemods is jscodeshift. You'll write more code, but at least you only have to write it once.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • node-trucker

    import-aware file management and dependency analysis for javascript

  • I've found https://github.com/davidmfoley/node-trucker to be brilliant for things like this, I use it to move the files and it updates all the imports.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts