I am working on a project that requires me to have package.json files in subdirectories with their own node_modules folders (kind of like a monorepo).
When I run npm pack to see what gets published I see a seemingly random node_modules folder get bundled when no other node_modules folder gets bundled.
To reproduce:
git clone https://github.com/wathhr/create-theme- Install deps in all required subdirectories (or run the
updateDepsscript) npm pack- Look at the .tgz file, no directory will have the
node_modulesfolder other thantemplates/languages/css
I have tried adding "bundleDependencies": false to my package.json (as mentioned here) to no avail.