We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d74b002 commit 1fa5d50Copy full SHA for 1fa5d50
ci/build/build-release.sh
@@ -79,7 +79,15 @@ EOF
79
mv npm-shrinkwrap.json "$RELEASE_PATH"
80
81
if [ "$KEEP_MODULES" = 1 ]; then
82
- rsync node_modules/ "$RELEASE_PATH/node_modules"
+ local rsync_opts=()
83
+ if [[ ${DEBUG-} = 1 ]]; then
84
+ rsync_opts+=(-vh)
85
+ fi
86
+ # If we build from source, exclude the prebuilds.
87
+ if [[ ${npm_config_build_from_source-} = true ]]; then
88
+ rsync_opts+=(--exclude /argon2/prebuilds)
89
90
+ rsync "${rsync_opts[@]}" node_modules/ "$RELEASE_PATH/node_modules"
91
# Remove dev dependencies.
92
pushd "$RELEASE_PATH"
93
npm prune --production
0 commit comments