Skip to content

Commit 21f55e5

Browse files
committed
Omit argon2 prebuilds
Since we build from source, these are dead weight. It also ensures we did in fact build from source.
1 parent f5781f0 commit 21f55e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/build/build-release.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ EOF
7979
mv npm-shrinkwrap.json "$RELEASE_PATH"
8080

8181
if [ "$KEEP_MODULES" = 1 ]; then
82-
rsync node_modules/ "$RELEASE_PATH/node_modules"
82+
local rsync_opts=()
83+
if [[ ${DEBUG-} = 1 ]]; then
84+
rsync_opts+=(-vh)
85+
fi
86+
# We build argon2 from source, exclude the prebuilds.
87+
rsync_opts+=(--exclude /argon2/prebuilds)
88+
rsync "${rsync_opts[@]}" node_modules/ "$RELEASE_PATH/node_modules"
8389
# Remove dev dependencies.
8490
pushd "$RELEASE_PATH"
8591
npm prune --production

0 commit comments

Comments
 (0)