hoist-modules
v1.1.4
Published
A small program to dedup Node.js modules and hoist them up to the root node_modules directory.
Downloads
15
Readme
hoist-modules
A small program to dedup Node.js modules and hoist them up to the root node_modules directory.
This module fixes a problem in the build process for Data-Forge Notebook. Using pnpm produces symbolic links to shared modules between packages in a workspace. Unfortunately this messes up the Electron build because it converts the symbolic links to duplicate modules.
Click here to support my work.
Usage
Globally instaled:
npm install -g hoist-modules
hoist-modules <root-node_modules-directory> <target-dir> [--force]
Installed in your project:
cd my-project
npm install --dev hoist-modules
npx hoist-modules <root-node_modules-directory> <target-dir> [--force]
Run it for development
Setup:
cd hoist-modules
npm install
Run it:
npm run start -- <root-node_modules-directory> <target-dir> -- --force
Or run it with live reload:
npm run dev -- <root-node_modules-directory> <target-dir> -- --force