Make sure dev_bundle/lib/node_modules/.bin is left intact.

If you run `meteor npm install` in bundle/programs/server, this change
means dev_bundle/lib/node_modules/.bin/node-pre-gyp will be available to
packages that need to rebuild binary dependencies, to pick just one
important example.
This commit is contained in:
Ben Newman
2016-05-19 09:52:25 -04:00
parent 6aec3603c8
commit e95dfe410e

View File

@@ -86,6 +86,9 @@ cd "${DIR}/build/npm-tool-install"
node "${CHECKOUT_DIR}/scripts/dev-bundle-tool-package.js" >package.json
npm install
cp -R node_modules/* "${DIR}/lib/node_modules/"
# Also include node_modules/.bin, so that `meteor npm` can make use of
# commands like node-gyp and node-pre-gyp.
cp -R node_modules/.bin "${DIR}/lib/node_modules/"
cd "${DIR}/lib"