How to bundle dependencies in npm package?
问题 I have a npm package which reference an other local package. It has a structure like so. deploy typescriptapp.tgz references mydependency package.json app.js app.css typescriptapp package.json webapp My typescriptapp package.json has the following dependencies "dependencies": { "mydependency": "file:../references/mydependency" }, My webapp package.json has the following dependencies "dependencies": { "typescriptapp": "file:../deploy/typescriptapp-1.0.0.tgz" }, When I use npm pack it work fine