From adaf28b4aabd25cb2e8515bffc78a88e89dbe80b Mon Sep 17 00:00:00 2001 From: Mitar Date: Wed, 25 Nov 2015 16:28:49 -0800 Subject: [PATCH 1/2] Make sure no user configuration is used. Reproducible builds and stuff. --- scripts/generate-dev-bundle.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate-dev-bundle.sh b/scripts/generate-dev-bundle.sh index 15584c0602..d3387375cd 100755 --- a/scripts/generate-dev-bundle.sh +++ b/scripts/generate-dev-bundle.sh @@ -53,6 +53,8 @@ cp -R "$DIR/lib/node_modules/npm" "$DIR/bundled-npm" # export path so we use the downloaded node and npm export PATH="$DIR/bin:$PATH" +export NPM_CONFIG_USERCONFIG="/nonexistent" + # install npm 3 in a temporary directory mkdir "$DIR/bin/npm3" cd "$DIR/bin/npm3" From cc959fcefb31779570afc735b61af5b20f22b042 Mon Sep 17 00:00:00 2001 From: Mitar Date: Tue, 1 Dec 2015 17:28:24 -0800 Subject: [PATCH 2/2] Added comment. --- scripts/generate-dev-bundle.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate-dev-bundle.sh b/scripts/generate-dev-bundle.sh index d3387375cd..e52d6c4ec4 100755 --- a/scripts/generate-dev-bundle.sh +++ b/scripts/generate-dev-bundle.sh @@ -53,6 +53,8 @@ cp -R "$DIR/lib/node_modules/npm" "$DIR/bundled-npm" # export path so we use the downloaded node and npm export PATH="$DIR/bin:$PATH" +# Disable any NPM user configuration so that there are no differences +# between users when generating dev bundles on their own computers. export NPM_CONFIG_USERCONFIG="/nonexistent" # install npm 3 in a temporary directory