Skip to content

Commit f7e7e14

Browse files
committed
Build: Don't save temporary npm dependencies to package.json
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
1 parent 74af512 commit f7e7e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/release-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ script( Release );
3737

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

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

0 commit comments

Comments
 (0)