diff --git a/scripts/generate-dev-bundle.sh b/scripts/generate-dev-bundle.sh index a3111ecdd8..dfd70fa4b4 100755 --- a/scripts/generate-dev-bundle.sh +++ b/scripts/generate-dev-bundle.sh @@ -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"