Skip to content

Commit

Permalink
Add explicit version for npm 3 so builds are reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Jul 23, 2015
1 parent 797eac1 commit 62c9918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-dev-bundle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $env:PATH = "${DIR}\bin;${env:PATH}"
mkdir "${DIR}\bin\npm3"
cd "${DIR}\bin\npm3"
echo "{}" | Out-File package.json -Encoding ascii # otherwise it doesn't install in local dir
npm install npm@3.0-latest
npm install npm@3.1.2

# add bin\npm3 to the front of the path so we can use npm 3 for building
$env:PATH = "${DIR}\bin\npm3;${env:PATH}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-dev-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export PATH="$DIR/bin:$PATH"
# install npm 3 in a temporary directory
mkdir "$DIR/bin/npm3"
cd "$DIR/bin/npm3"
npm install npm@3.0-latest
npm install npm@3.1.2
cp node_modules/npm/bin/npm .

# export path again with our temporary npm3 directory first,
Expand Down

0 comments on commit 62c9918

Please sign in to comment.