Skip to content

Commit 765f093

Browse files
dkolbamfranzke
andauthored
chore: 🤖 Add strict .npmrc file (#5118)
* chore: 🤖 Add strict .npmrc file * Update .npmrc * Update .npmrc * Update .npmrc * Apply suggestions from code review --------- Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com>
1 parent d4bfc6d commit 765f093

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.npmrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# If set to false, then ignore package-lock.json files when installing. This will also prevent writing package-lock.json if save is true. source: https://docs.npmjs.com/cli/v11/using-npm/config
2+
package-lock=true
3+
# If true, npm does not run scripts specified in package.json files. source: https://docs.npmjs.com/cli/v11/using-npm/config#ignore-scripts
4+
ignore-scripts=true
5+
# Dependencies saved to package.json will be configured with an exact version rather than using npm's default semver range operator. source: https://docs.npmjs.com/cli/v11/using-npm/config#save-exact
6+
save-exact=true
7+
# If set to true, then npm will stubbornly refuse to install (or even consider installing) any package that claims to not be compatible with the current Node.js version. source: https://docs.npmjs.com/cli/v11/using-npm/config#engine-strict
8+
engine-strict=true

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"e2e"
2424
],
2525
"packageManager": "npm@11.5.2",
26+
"engines": {
27+
"node": ">= 24"
28+
},
2629
"keywords": [
2730
"design-system",
2831
"ui-library",

0 commit comments

Comments
 (0)