Skip to content

Commit

Permalink
fix(release): ensure our npm options are used during make-distribution (
Browse files Browse the repository at this point in the history
#3969)

Fixes: #3968
  • Loading branch information
trentm committed Apr 12, 2024
1 parent bdc1f50 commit 5077436
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev-utils/make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ mkdir -p nodejs/node_modules/elastic-apm-node
tar --strip-components=1 -xf elastic-apm-node-*.tgz;
rm elastic-apm-node-*.tgz;
cp $TOP/package-lock.json ./;
cp $TOP/.npmrc ./;
# Then install the "package-lock.json"-dictated dependencies (excluding
# devDependencies). Use '--ignore-scripts' to have confidence no code but
# ours and npm's is running.
npm ci --omit=dev --ignore-scripts;
rm package-lock.json)
rm package-lock.json;
rm .npmrc)

# Generate a NOTICE file including the licenses of all included deps.
NOTICE=nodejs/node_modules/elastic-apm-node/NOTICE.md
Expand Down

0 comments on commit 5077436

Please sign in to comment.