Skip to content

Commit

Permalink
build: ugrade project dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Aug 20, 2024
1 parent 0cbe4c7 commit 9cbae01
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
20 changes: 12 additions & 8 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
const {utils: {getPackages}} = require('@commitlint/config-lerna-scopes');
import scopes from "@commitlint/config-lerna-scopes";

module.exports = {
export default {
extends: [
"@commitlint/config-conventional",
"@commitlint/config-lerna-scopes"
"@commitlint/config-lerna-scopes",
],
rules: {
"scope-enum": async ctx =>
[2, "always", [...(await getPackages(ctx)),
"scope-enum": async (ctx) => [
2,
"always",
[
...(await scopes.utils.getPackages(ctx)),
// Custom scopes
"release"
]]
}
"release",
],
],
},
};
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
}
},
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"private": true,
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@commitlint/config-lerna-scopes": "^17.6.3",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/config-lerna-scopes": "^19.0.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.3",
"lerna": "^6.6.1"
"husky": "^9.1.4",
"lerna": "^8.1.8"
},
"repository": {
"type": "git",
Expand All @@ -22,6 +22,7 @@
"test:legacy": "lerna run test:legacy",
"version": "lerna version"
},
"type": "module",
"workspaces": {
"packages": [
"packages/*",
Expand Down

0 comments on commit 9cbae01

Please sign in to comment.