From 9c2fe956b8e3614e607d3ab3ac6172d031c01eed Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 11 Apr 2024 11:58:09 -0700 Subject: [PATCH] fix(release): ensure our npm options are used during make-distribution Fixes: #3968 --- dev-utils/make-distribution.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-utils/make-distribution.sh b/dev-utils/make-distribution.sh index 5c3175d1ef..55f537443b 100755 --- a/dev-utils/make-distribution.sh +++ b/dev-utils/make-distribution.sh @@ -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