Skip to content

Commit 323240c

Browse files
authored
chore: 🤖 Add strict .npmrc file (#106)
* chore: 🤖 Add strict `.npmrc` file Add `.npmrc` with sane defaults * Update Node.js engine requirement to version 24 or higher * feat(ci/cd): Add GitHub Action for auto-assigning PRs out of the recipes from https://github.com/actions-ecosystem/recipes this sounded very interesting. As we're sometimes forgetting to set ourselves as the assignee after opening a PR, this action would be very helpful. * Update package.json * refactor: prettier * Delete .github/workflows/auto-assign.yml
1 parent 60a6d9c commit 323240c

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
@@ -15,6 +15,9 @@
1515
"license": "MIT",
1616
"private": true,
1717
"packageManager": "pnpm@10.14.0",
18+
"engines": {
19+
"node": ">= 22"
20+
},
1821
"keywords": [
1922
"css",
2023
"polyfill",

0 commit comments

Comments
 (0)