Skip to content

Commit

Permalink
chore: npm-check-updates
Browse files Browse the repository at this point in the history
Move the configuration from command-line arguments into the respective
.ncur.*.js files
  • Loading branch information
matijs authored and Robbert committed Mar 4, 2024
1 parent 048258e commit e6a2c9a
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 176 deletions.
2 changes: 2 additions & 0 deletions .ncurc.major.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const minorConfig = require('./.ncurc.minor');

module.exports = {
...minorConfig,
reject: [
...minorConfig.reject,
// Storybook needs React 16 to have support out of the box.
Expand All @@ -14,4 +15,5 @@ module.exports = {
// We don't yet use Node 17 so the types of node should also be locked at Node 16.
'@types/node',
],
target: 'latest',
};
2 changes: 2 additions & 0 deletions .ncurc.minor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const patchConfig = require('./.ncurc.patch');

module.exports = {
...patchConfig,
reject: [...patchConfig.reject],
target: 'minor',
};
5 changes: 5 additions & 0 deletions .ncurc.patch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
module.exports = {
dep: ['dev', 'prod'],
install: 'always',
reject: [],
root: true,
target: 'patch',
upgrade: true,
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"version": "0.1.0",
"private": true,
"engines" : {
"engines": {
"node": "^20",
"pnpm": "^8"
},
Expand All @@ -28,9 +28,9 @@
"lint:ts": "tsc --noEmit --project tsconfig.json",
"prettier": "prettier --write .",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
"update-patch": "npm-check-updates --configFileName .ncurc.patch.js --deep --dep dev,prod --target patch --upgrade && pnpm install",
"update-minor": "npm-check-updates --configFileName .ncurc.minor.js --deep --dep dev,prod --target minor --upgrade && pnpm install",
"update-major": "npm-check-updates --configFileName .ncurc.major.js --deep --dep dev,prod --target latest --upgrade && pnpm install",
"update-patch": "npm-check-updates --configFileName .ncurc.patch.js",
"update-minor": "npm-check-updates --configFileName .ncurc.minor.js",
"update-major": "npm-check-updates --configFileName .ncurc.major.js",
"watch:test": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
"prepare": "husky install"
},
Expand Down Expand Up @@ -67,7 +67,7 @@
"jest-environment-jsdom": "28.1.3",
"lint-staged": "13.0.3",
"next-i18next": "11.3.0",
"npm-check-updates": "16.0.5",
"npm-check-updates": "16.14.15",
"npm-package-json-lint": "6.3.0",
"npm-run-all": "4.1.5",
"prettier": "2.7.1",
Expand Down
Loading

0 comments on commit e6a2c9a

Please sign in to comment.