chore: add allowscripts to work with npm 12#4811
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4811 +/- ##
=======================================
Coverage 93.30% 93.30%
=======================================
Files 14 14
Lines 5466 5466
Branches 793 793
=======================================
Hits 5100 5100
Misses 364 364
Partials 2 2 Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Summary
When using npm 12, post install scripts are not allowed to run by default. Without this change, the user has to manually approve the scripts after install, which modifies the
package.jsonfile or allow the scripts in their own.npmrcwhich makes the install less reproducible.See https://github.com/orgs/community/discussions/198547
What kind of change does this PR introduce?
npm configuration change in package.json
Did you add tests for your changes?
The changes do not touch the code that reaches the end user, only the install procedure for development.
Does this PR introduce a breaking change?
No.
If relevant, what needs to be documented once your changes are merged or what have you already documented?
Use of AI