Skip to content

Commit 78bb4af

Browse files
authored
build: Update lerna to 7.1.1 (#8437)
We've been on an alpha version before, so it makes sense to update to the latest stable version instead. There are some removed things that we are not using, so updating should just fix some bugs and not much else. I ran `yarn lerna repair` to clean up config. See: https://github.com/lerna/lerna/releases/tag/7.0.0
1 parent 16a29c0 commit 78bb4af

File tree

4 files changed

+932
-765
lines changed

4 files changed

+932
-765
lines changed

lerna.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"version": "7.57.0",
4-
"npmClient": "yarn",
5-
"useWorkspaces": true
4+
"npmClient": "yarn"
65
}

nx.json

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,65 +3,35 @@
33
"default": {
44
"runner": "nx/tasks-runners/default",
55
"options": {
6-
"cacheableOperations": [
7-
"build:bundle",
8-
"build:transpile",
9-
"build:types",
10-
"lint:eslint",
11-
"test:unit"
12-
],
6+
"cacheableOperations": ["build:bundle", "build:transpile", "build:types", "lint:eslint", "test:unit"],
137
"cacheDirectory": ".nxcache"
148
}
159
}
1610
},
1711
"namedInputs": {
1812
"default": ["{projectRoot}/**/*", "sharedGlobals"],
19-
"sharedGlobals": [
20-
"{workspaceRoot}/*.js",
21-
"{workspaceRoot}/*.json"
22-
],
23-
"production": [
24-
"default",
25-
"!{projectRoot}/test/**/*",
26-
"!{projectRoot}/**/*.md"
27-
]
13+
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json"],
14+
"production": ["default", "!{projectRoot}/test/**/*", "!{projectRoot}/**/*.md"]
2815
},
2916
"targetDefaults": {
3017
"build:bundle": {
3118
"inputs": ["production", "^production"],
32-
"dependsOn": [
33-
"build:transpile"
34-
],
35-
"outputs": [
36-
"{projectRoot}/build/bundles"
37-
]
19+
"dependsOn": ["build:transpile"],
20+
"outputs": ["{projectRoot}/build/bundles"]
3821
},
3922
"build:tarball": {
4023
"inputs": ["production", "^production"],
41-
"dependsOn": [
42-
"build:transpile",
43-
"build:types"
44-
],
24+
"dependsOn": ["build:transpile", "build:types"],
4525
"outputs": []
4626
},
4727
"build:transpile": {
4828
"inputs": ["production", "^production"],
49-
"dependsOn": [
50-
"^build:transpile:uncached",
51-
"^build:transpile",
52-
"build:transpile:uncached"
53-
],
54-
"outputs": [
55-
"{projectRoot}/build/npm",
56-
"{projectRoot}/build/esm",
57-
"{projectRoot}/build/cjs"
58-
]
29+
"dependsOn": ["^build:transpile:uncached", "^build:transpile", "build:transpile:uncached"],
30+
"outputs": ["{projectRoot}/build/npm", "{projectRoot}/build/esm", "{projectRoot}/build/cjs"]
5931
},
6032
"build:types": {
6133
"inputs": ["production", "^production"],
62-
"dependsOn": [
63-
"^build:types"
64-
],
34+
"dependsOn": ["^build:types"],
6535
"outputs": [
6636
"{projectRoot}/build/types",
6737
"{projectRoot}/build/types-ts3.8",
@@ -78,5 +48,6 @@
7848
"inputs": ["default"],
7949
"outputs": ["{projectRoot}/coverage"]
8050
}
81-
}
51+
},
52+
"$schema": "./node_modules/nx/schemas/nx-schema.json"
8253
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"jsdom": "^19.0.0",
9999
"karma-browserstack-launcher": "^1.5.1",
100100
"karma-firefox-launcher": "^1.1.0",
101-
"lerna": "6.5.0-alpha.2",
101+
"lerna": "7.1.1",
102102
"madge": "4.0.2",
103103
"mocha": "^6.1.4",
104104
"nodemon": "^2.0.16",

0 commit comments

Comments
 (0)