Skip to content

Instantly share code, notes, and snippets.

@orvn
Last active November 9, 2023 19:34
Show Gist options
  • Save orvn/5ff8b5bda0231dc1091d056cd3714286 to your computer and use it in GitHub Desktop.
Save orvn/5ff8b5bda0231dc1091d056cd3714286 to your computer and use it in GitHub Desktop.
A shell script that forces symlinks to be created within a workspace (package) of an npm monorepo, so that `node_modules` in the repo root are referenced symbolically in the workspace's `node_modules`. This script can be run by the CI or a build script to forcefully ensure workspaces know about dependencies available in the repo root. It's a bi…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment