Skip to content

Commit acf6c64

Browse files
authored
chore(deps): Upgrade Lerna to v8 (#19050)
This upgrades Lerna to v8. I this case after the upgrade I followed the upgrade guide and ran `lerna repair`: https://github.com/lerna/lerna/releases/tag/v8.0.0 Based on the breaking changes we are not affected. The most "critical" one is that Node v16 got dropped, but we are still running the CI in v18. The "tasksRunnerOptions" were removed, but they are not inline with the other options, so it is easier to configure in the future (this was done automatically with `lerna repair`)
1 parent e80a940 commit acf6c64

File tree

4 files changed

+928
-695
lines changed

4 files changed

+928
-695
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ packages/browser/test/loader.js
22
packages/replay-worker/examples/worker.min.js
33
dev-packages/browser-integration-tests/fixtures
44
**/test.ts-snapshots/**
5+
6+
/.nx/cache
7+
/.nx/workspace-data

nx.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"tasksRunnerOptions": {
3-
"default": {
4-
"runner": "nx/tasks-runners/default",
5-
"options": {
6-
"cacheableOperations": ["build:bundle", "build:transpile", "build:types", "lint", "test:unit", "build:tarball"],
7-
"cacheDirectory": ".nxcache"
8-
}
9-
}
10-
},
112
"namedInputs": {
123
"default": ["{projectRoot}/**/*", "sharedGlobals"],
134
"sharedGlobals": [
@@ -22,12 +13,14 @@
2213
"build:bundle": {
2314
"inputs": ["production", "^production"],
2415
"dependsOn": ["build:transpile"],
25-
"outputs": ["{projectRoot}/build/bundles"]
16+
"outputs": ["{projectRoot}/build/bundles"],
17+
"cache": true
2618
},
2719
"build:tarball": {
2820
"inputs": ["production", "^production"],
2921
"dependsOn": ["build:transpile", "^build:transpile", "build:types", "^build:types"],
30-
"outputs": ["{projectRoot}/*.tgz"]
22+
"outputs": ["{projectRoot}/*.tgz"],
23+
"cache": true
3124
},
3225
"build:transpile": {
3326
"inputs": ["production", "^production"],
@@ -37,7 +30,8 @@
3730
"{projectRoot}/build/cjs",
3831
"{projectRoot}/build/npm/esm",
3932
"{projectRoot}/build/npm/cjs"
40-
]
33+
],
34+
"cache": true
4135
},
4236
"build:types": {
4337
"inputs": ["production", "^production"],
@@ -47,18 +41,22 @@
4741
"{projectRoot}/build/types-ts3.8",
4842
"{projectRoot}/build/npm/types",
4943
"{projectRoot}/build/npm/types-ts3.8"
50-
]
44+
],
45+
"cache": true
5146
},
5247
"lint": {
5348
"inputs": ["default"],
5449
"dependsOn": ["^build:types", "build:types"],
55-
"outputs": []
50+
"outputs": [],
51+
"cache": true
5652
},
5753
"test:unit": {
5854
"dependsOn": ["build:types", "^build:types", "build:transpile", "^build:transpile"],
5955
"inputs": ["default"],
60-
"outputs": ["{projectRoot}/coverage"]
56+
"outputs": ["{projectRoot}/coverage"],
57+
"cache": true
6158
}
6259
},
63-
"$schema": "./node_modules/nx/schemas/nx-schema.json"
60+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
61+
"cacheDirectory": ".nxcache"
6462
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"es-check": "^7.2.1",
125125
"eslint": "8.57.0",
126126
"jsdom": "^21.1.2",
127-
"lerna": "7.1.1",
127+
"lerna": "8.2.4",
128128
"madge": "8.0.0",
129129
"nodemon": "^3.1.10",
130130
"npm-run-all2": "^6.2.0",

0 commit comments

Comments
 (0)