Skip to content

Commit

Permalink
Build: Don't save temporary npm dependencies to package.json
Browse files Browse the repository at this point in the history
Past npm versions required the `--save` flag to save anything in `package.json`
when installing packages but newer ones do this by default. Pass `--no-save` to
restore the original behavior in the `release-test.js` script.

Ref gh-1966
  • Loading branch information
mgol committed Aug 6, 2021
1 parent 74af512 commit f7e7e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/release-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ script( Release );

// Ignores actual version installed, should be good enough for a test
if ( shell.exec( "npm ls --depth 0 | grep download.jqueryui.com" ).code === 1 ) {
shell.exec( "npm install " + script.dependencies.join( " " ) );
shell.exec( "npm install --no-save " + script.dependencies.join( " " ) );
}

// If AUTHORS.txt is outdated, this will update it
Expand Down

0 comments on commit f7e7e14

Please sign in to comment.