Skip to content

Commit

Permalink
chore: npm-check-updates config
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 committed Feb 29, 2024
1 parent 598d786 commit ee190e1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .ncurc.major.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const minorConfig = require('./.ncurc.minor');

module.exports = {
...minorConfig,
reject: [...minorConfig.reject, '@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',
};
6 changes: 6 additions & 0 deletions .ncurc.patch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
module.exports = {
dep: ['dev', 'prod'],
install: 'always',
reject: [],
root: true,
target: 'patch',
upgrade: true,
workspaces: true,
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"prettier": "prettier --write .",
"publish": "lerna publish from-package",
"release": "lerna version prerelease --no-changelog --no-private",
"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"
}
}

0 comments on commit ee190e1

Please sign in to comment.