From 1fa5d5084be9cc569d98188ca8b85f2587a39133 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 6 Apr 2026 11:35:20 -0800 Subject: [PATCH] Omit argon2 prebuilds Since we build from source, these are dead weight. It also ensures we did in fact build from source. --- ci/build/build-release.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/build/build-release.sh b/ci/build/build-release.sh index 68193af2e..6fd347e0b 100755 --- a/ci/build/build-release.sh +++ b/ci/build/build-release.sh @@ -79,7 +79,15 @@ EOF mv npm-shrinkwrap.json "$RELEASE_PATH" if [ "$KEEP_MODULES" = 1 ]; then - rsync node_modules/ "$RELEASE_PATH/node_modules" + local rsync_opts=() + if [[ ${DEBUG-} = 1 ]]; then + rsync_opts+=(-vh) + fi + # If we build from source, exclude the prebuilds. + if [[ ${npm_config_build_from_source-} = true ]]; then + rsync_opts+=(--exclude /argon2/prebuilds) + fi + rsync "${rsync_opts[@]}" node_modules/ "$RELEASE_PATH/node_modules" # Remove dev dependencies. pushd "$RELEASE_PATH" npm prune --production