8000 chore: update lerna to 4.0.0 (#3151) · thdk/typescript-eslint@3b017f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b017f0

Browse files
armano2bradzacher
andauthored
chore: update lerna to 4.0.0 (typescript-eslint#3151)
* chore: update lerna to 4.0.0 * chore: fix lockfile Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
1 parent d724777 commit 3b017f0

File tree

4 files changed

+1396
-2586
lines changed

4 files changed

+1396
-2586
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
22
dist
33
jest.config.js
4+
commitlint.config.js
45
fixtures
56
shared-fixtures
67
coverage

commitlint.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const path = require('path');
2+
const config = require('./package.json');
3+
const globby = require('globby');
4+
5+
const workspaces = config.workspaces.packages.map(ws =>
6+
path.posix.join(ws, 'package.json'),
7+
);
8+
9+
const packages = globby
10+
.sync(workspaces, {
11+
cwd: __dirname,
12+
})
13+
.map(pJson => require(path.join(__dirname, pJson)).name)
14+
.map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name));
15+
16+
module.exports = {
17+
extends: ['@commitlint/config-conventional'],
18+
rules: {
19+
'body-max-length': [0],
20+
'body-max-line-length': [0],
21+
'footer-max-length': [0],
22+
'footer-max-line-length': [0],
23+
'header-max-length': [0],
24+
'scope-enum': [2, 'always', packages],
25+
},
26+
};

package.json

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,39 +51,16 @@
5151
"path": "./node_modules/cz-conventional-changelog"
5252
}
5353
},
54-
"commitlint": {
55-
"extends": [
56-
"@commitlint/config-conventional",
57-
"@commitlint/config-lerna-scopes"
58-
],
59-
"rules": {
60-
"body-max-length": [
61-
0
62-
],
63-
"body-max-line-length": [
64-
0
65-
],
66-
"footer-max-length": [
67-
0
68-
],
69-
"footer-max-line-length": [
70-
0
71-
],
72-
"header-max-length": [
73-
0
74-
]
75-
}
76-
},
7754
"engines": {
7855
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
7956
},
8057
"devDependencies": {
8158
"@babel/code-frame": "^7.16.0",
8259
"@babel/parser": "^7.16.2",
8360
"@babel/types": "^7.16.0",
84-
"@commitlint/cli": "^13.1.0",
85-
"@commitlint/config-conventional": "^13.1.0",
86-
"@commitlint/config-lerna-scopes": "^13.1.0",
61+
"@commitlint/cli": "^14.1.0",
62+
"@commitlint/config-conventional": "^14.1.0",
63+
"@commitlint/config-lerna-scopes": "^14.0.0",
8764
"@nrwl/cli": "13.0.2",
8865
"@nrwl/nx-cloud": "12.5.1",
8966
"@nrwl/tao": "13.0.2",
@@ -118,7 +95,7 @@
11895
"husky": "^7.0.4",
11996
"jest": "^27.3.1",
12097
"jest-specific-snapshot": "^5.0.0",
121-
"lerna": "^3.22.1",
98+
"lerna": "^4.0.0",
12299
"lint-staged": "^11.1.2",
123100
"make-dir": "^3.1.0",
124101
"markdownlint-cli": "^0.29.0",

0 commit comments

Comments
 (0)
0