[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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. 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.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. 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.

  4. 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

  • Migrating 120k+ Lines of Legacy Banking JavaScript to TypeScript with Zero Downtime

    2 projects | dev.to | 22 Sep 2025
  • From React to TypeScript, Simplifying Migration with ts-migrate

    2 projects | dev.to | 29 Jun 2024
  • How to Do a TypeScript Conversion: an opinionated take on gradual conversions

    2 projects | news.ycombinator.com | 4 Nov 2023
  • [AskJS] Can anyone recommend a test runner with ESM and Custom Loader Support?

    3 projects | /r/javascript | 11 Jun 2023
  • Declaring static json imported "as const"

    1 project | /r/typescript | 20 Feb 2023