Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update lerna to 4.0.0 #3151

Merged
merged 5 commits into from Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
@@ -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
@@ -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
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",
armano2 marked this conversation as resolved.
Show resolved Hide resolved
"@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.27.1",
Expand Down