Skip to content

Commit aba88fc

Browse files
committed
chore: upgrade lerna to ^8.2.3 and update configuration format
Update lerna from version 6 to 8.2.3 across the repository and modernize lerna.json configuration to match Lerna 8.x schema. Changes: - Upgrade lerna dependency to ^8.2.3 in root and workspace boilerplate - Update lerna.json to Lerna 8.x format: * Add $schema reference for editor validation * Remove deprecated "lerna" and "useWorkspaces" fields * Move conventionalCommits under command.publish * Keep existing npmClient, npmClientArgs, and registry settings - Update generated workspace template to use new lerna.json format Files modified: - package.json (root) - lerna.json (root) - boilerplates/workspace/package.json - boilerplates/workspace/lerna.json - packages/templatizer/src/generated/workspace.ts
1 parent 966caa7 commit aba88fc

6 files changed

Lines changed: 822 additions & 1502 deletions

File tree

boilerplates/workspace/lerna.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
2-
"lerna": "6",
3-
"conventionalCommits": true,
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "independent",
44
"npmClient": "pnpm",
55
"npmClientArgs": [
66
"--frozen-lockfile"
77
],
88
"packages": [
99
"packages/*"
1010
],
11-
"version": "independent",
1211
"registry": "https://registry.npmjs.org",
1312
"command": {
1413
"create": {
@@ -18,7 +17,8 @@
1817
},
1918
"publish": {
2019
"allowBranch": "main",
21-
"message": "chore(release): publish"
20+
"message": "chore(release): publish",
21+
"conventionalCommits": true
2222
}
2323
}
2424
}

boilerplates/workspace/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"eslint-plugin-unused-imports": "^4.0.0",
3232
"eslint": "^8.56.0",
3333
"jest": "^29.6.2",
34-
"lerna": "^6",
34+
"lerna": "^8.2.3",
3535
"prettier": "^3.0.2",
3636
"rimraf": "4.4.1",
3737
"strip-ansi": "^6",

lerna.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
2-
"lerna": "6",
3-
"useWorkspaces": true,
4-
"conventionalCommits": true,
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "independent",
54
"npmClient": "pnpm",
65
"npmClientArgs": [
76
"--frozen-lockfile"
87
],
9-
"version": "independent",
108
"registry": "https://registry.npmjs.org",
119
"command": {
1210
"create": {
@@ -16,7 +14,8 @@
1614
},
1715
"publish": {
1816
"allowBranch": "main",
19-
"message": "chore(release): publish"
17+
"message": "chore(release): publish",
18+
"conventionalCommits": true
2019
}
2120
}
2221
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"eslint-plugin-unused-imports": "^4.0.0",
4040
"jest": "^29.6.2",
4141
"jest-in-case": "^1.0.2",
42-
"lerna": "^6",
42+
"lerna": "^8.2.3",
4343
"prettier": "^3.0.2",
4444
"rimraf": "4.4.1",
4545
"strip-ansi": "^6",

packages/templatizer/src/generated/workspace.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default [
5858
"eslint-plugin-unused-imports": "^4.0.0",
5959
"eslint": "^8.56.0",
6060
"jest": "^29.6.2",
61-
"lerna": "^6",
61+
"lerna": "^8.2.3",
6262
"prettier": "^3.0.2",
6363
"rimraf": "4.4.1",
6464
"strip-ansi": "^6",
@@ -73,16 +73,15 @@ export default [
7373
(vars: Record<string, any>) => {
7474
const relPath = `lerna.json`;
7575
const content = `{
76-
"lerna": "6",
77-
"conventionalCommits": true,
76+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
77+
"version": "independent",
7878
"npmClient": "pnpm",
7979
"npmClientArgs": [
8080
"--frozen-lockfile"
8181
],
8282
"packages": [
8383
"packages/*"
8484
],
85-
"version": "independent",
8685
"registry": "https://registry.npmjs.org",
8786
"command": {
8887
"create": {
@@ -92,7 +91,8 @@ export default [
9291
},
9392
"publish": {
9493
"allowBranch": "main",
95-
"message": "chore(release): publish"
94+
"message": "chore(release): publish",
95+
"conventionalCommits": true
9696
}
9797
}
9898
}`;

0 commit comments

Comments
 (0)