Skip to content

Commit

Permalink
chore: update lerna to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Mar 5, 2021
1 parent 84fe328 commit f941696
Show file tree
Hide file tree
Showing 4 changed files with 1,422 additions and 1,841 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
dist
jest.config.js
commitlint.config.js
fixtures
shared-fixtures
coverage
Expand Down
26 changes: 26 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const path = require('path');
const config = require('./package.json');
const globby = require('globby');

const workspaces = config.workspaces.map(ws =>
path.posix.join(ws, 'package.json'),
);

const packages = globby
.sync(workspaces, {
cwd: __dirname,
})
.map(pJson => require(path.join(__dirname, pJson)).name)
.map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name));

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-length': [0],
'body-max-line-length': [0],
'footer-max-length': [0],
'footer-max-line-length': [0],
'header-max-length': [0],
'scope-enum': [2, 'always', packages],
},
};
26 changes: 1 addition & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,36 +44,12 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional",
"@commitlint/config-lerna-scopes"
],
"rules": {
"body-max-length": [
0
],
"body-max-line-length": [
0
],
"footer-max-length": [
0
],
"footer-max-line-length": [
0
],
"header-max-length": [
0
]
}
},
"engines": {
"node": "^10.12.0 || >=12.0.0"
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@commitlint/config-lerna-scopes": "^12.0.1",
"@types/babel__code-frame": "^7.0.2",
"@types/debug": "^4.1.5",
"@types/eslint-visitor-keys": "^1.0.0",
Expand Down Expand Up @@ -102,7 +78,7 @@
"isomorphic-fetch": "^3.0.0",
"jest": "^26.6.3",
"jest-specific-snapshot": "^4.0.0",
"lerna": "^3.22.1",
"lerna": "^4.0.0",
"lint-staged": "^10.2.13",
"make-dir": "^3.1.0",
"markdownlint-cli": "^0.26.0",
Expand Down

0 comments on commit f941696

Please sign in to comment.