Skip to content

Commit 51eb4b6

Browse files
authoredDec 27, 2023
chore: Migrate from Nx v15 to v17 (#5231)
1 parent de5788c commit 51eb4b6

File tree

5 files changed

+171
-140
lines changed

5 files changed

+171
-140
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ dist
4343
package-lock.json
4444
*.tsbuildinfo
4545
*.tsbuildinfo
46+
47+
.nx/cache

‎nx.json

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2-
"tasksRunnerOptions": {
3-
"default": {
4-
"runner": "nx/tasks-runners/default",
5-
"options": {
6-
"cacheableOperations": ["build", "build-js", "test:ci", "typecheck"]
7-
}
8-
}
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"affected": {
4+
"defaultBase": "main"
95
},
106
"defaultBase": "main",
7+
"pluginsConfig": {
8+
"@nrwl/js": {
9+
"analyzeSourceFiles": false
10+
}
11+
},
12+
"parallel": 5,
1113
"namedInputs": {
1214
"packageSources": [
1315
"{workspaceRoot}/packages/**/src/**/*.ts",
@@ -18,7 +20,17 @@
1820
"targetDefaults": {
1921
"build": {
2022
"outputs": ["{projectRoot}/build"],
21-
"inputs": ["buildDeps", "^buildDeps"]
23+
"inputs": ["buildDeps", "^buildDeps"],
24+
"cache": true
25+
},
26+
"build-js": {
27+
"cache": true
28+
},
29+
"test:ci": {
30+
"cache": true
31+
},
32+
"typecheck": {
33+
"cache": true
2234
}
2335
}
2436
}

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"jsdom": "^21.1.1",
102102
"lerna": "^4.0.0",
103103
"luxon": "^2.3.2",
104-
"nx": "15.8.7",
104+
"nx": "^17.2.7",
105105
"prettier": "^3.0.3",
106106
"react": "^17.0.2",
107107
"react-dom": "^17.0.2",
@@ -119,4 +119,4 @@
119119
"vitest": "^0.29.3",
120120
"vue": "^3.2.33"
121121
}
122-
}
122+
}

‎project.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "node_modules/nx/schemas/project-schema.json",
23
"name": "root",
34
"targets": {
45
"build-js": {

0 commit comments

Comments
 (0)
Please sign in to comment.