Skip to content

Commit

Permalink
chore: 🤖 upgrade node, husky & semantic-release
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Dropped support for node.js < 18
  • Loading branch information
carpasse committed Jun 27, 2024
1 parent 000dafe commit c5185ce
Show file tree
Hide file tree
Showing 7 changed files with 2,808 additions and 2,309 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
lts/hydrogen
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "index.js",
"scripts": {
"test": "echo \"No test specified\" && exit 0",
"lint": "eslint **/*.js",
"lint": "eslint './**/*.js'",
"precommit": "npm run lint",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"prepare": "husky",
"semantic-release": "semantic-release"
},
"author": "MailOnline <[email protected]>",
"homepage": "https://github.com/MailOnline/mol-conventional-changelog",
Expand All @@ -27,10 +28,15 @@
},
"devDependencies": {
"commitizen": "^4.2.4",
"eslint": "^7.0.0",
"eslint-config-mailonline": "^9.0.2",
"husky": "^0.14.3",
"semantic-release": "^19.0.0"
"eslint": "8.57.0",
"eslint-config-mailonline": "^13.0.2",
"husky": "^9.0.11",
"semantic-release": "^22.0.12"
},
"release": {
"branches": [
"master"
]
},
"resolutions": {
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion src/createPrompter.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = (config) => {
if (IS_LERNA_PROJECT) {
const allPackages = getAllPackages().map((pkg) => pkg.name);
const changedPackages = getChangedPackages();

promptQuestions = promptQuestions.concat(createPackagesQuestion(allPackages, changedPackages));

return returnPrompt(config, promptQuestions, commit);
Expand Down
2 changes: 1 addition & 1 deletion src/lernaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getAllPackages = () => {
const packages = packagePaths.flatMap((packagePath) =>
glob.sync(packagePath).map((pkgPath) => ({
location: pkgPath,
name: JSON.parse(fs.readFileSync(path.join(pkgPath, 'package.json'))).name,
name: JSON.parse(fs.readFileSync(path.join(pkgPath, 'package.json'))).name
}))
);

Expand Down
Loading

0 comments on commit c5185ce

Please sign in to comment.