Closed JamieMason closed 8 years ago
Feedback welcome.
Not sure whether this is a good idea: on the face of it there are some good positives but, while avoiding some traps, it brings others of its own.
Well this looks like a show stopper... https://github.com/npm/npm/issues/7140
Thanks, yeah I think this overall is a bad idea.
Currently
shrinkpack
npm config get cache
../node_shrinkwrap
.npm-shrinkwrap.json
to point at egfile:node_shrinkwrap/lodash.isarray-3.0.4.tgz
.This issue proposes that instead
shrinkpack
;cache=node_shrinkwrap
in.npmrc
.npm-shrinkwrap.json
to point at egfile:node_shrinkwrap/lodash.isarray/3.0.4/package.tgz
.Positives
Negatives/Considerations
file:node_shrinkwrap/lodash.isarray-3.0.4.tgz
tofile:node_shrinkwrap/lodash.isarray/3.0.4/package.tgz
.package.json
files in the npm cache will make commit diffs noisy (avoiding noisy diffs is one of the main benefits ofshrinkpack
) however;find node_cache -iname "*.json" -delete
) andnpm install
works fine.package.json
files,npm
appears to restore them from thepackage.tgz
without hitting the network..json
files with.gitignore
.node_cache
except.tgz
files.