test, build: Clean up package-lock.json after make coverage#15196
test, build: Clean up package-lock.json after make coverage#15196ssbrewster wants to merge 2 commits intonodejs:masterfrom
Conversation
13edb66 to
a3381a3
Compare
|
Isn't better to use the |
|
Yeah I think |
|
Actually, relatedly, since |
When running make coverage npm installs istanbul-merge and nyc and generates a package-lock.json file Ensure this file is removed when running make coverage-clean Refs: https://github.com/nodejs/node/pull/15190/files#r136932786
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file Refs: https://github.com/nodejs/node/pull/15190/files#r136932786
a3381a3 to
39846c1
Compare
|
Thanks for mentioning those flags @lpinca @Fishrock123. PR updated. |
|
@ssbrewster thanks a lot for your contribution! Landed in 9168b8c |
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: #15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: #15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: #15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: #15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: nodejs#15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
Should this be backported to |
|
@MylesBorins what is the criteria for backporting? Happy to raise a PR if needed. |
|
I actually realized you asked another thing, sorry. I see no coverage target on v6.x Makefile so I think this should not be backported. |
|
Ok thanks for the confirmation @lpinca 😄 |
|
Added |
|
No worries @lpinca |
When running
make coverage, npm installsistanbul-mergeandnycandgenerates a
package-lock.jsonfile.This PR adds the
rm package-lock.jsoncommand to the Makefile.Refs: https://github.com/nodejs/node/pull/15190/files#r136932786
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test