Skip to content

Instantly share code, notes, and snippets.

@cristiano-belloni
Created May 25, 2024 20:55
Show Gist options
  • Save cristiano-belloni/9062aabb1119e758db61832d2a858e37 to your computer and use it in GitHub Desktop.
Save cristiano-belloni/9062aabb1119e758db61832d2a858e37 to your computer and use it in GitHub Desktop.
Interlink multirepos

Interlink

Link multirepos like npm link but without installing them globally. Reset them after you've done.

Usage

Link

Specify local packages multiple directories and / or globbing patterns. All the packages will be linked to each other by symlinking the respective entries in each package's node_modules (if present):

interlink link ../project-* ../test-package

Reset

Running the reset command is equivalent to running npm i on all the packages, which restores the original dependencies, unlinking them.

interlink reset ../project-\* ../test-package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment