Skip to content

Commit

Permalink
chore: Migrate from Nx v15 to v17 (#5231)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Dec 27, 2023
1 parent de5788c commit 51eb4b6
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 140 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -43,3 +43,5 @@ dist
package-lock.json
*.tsbuildinfo
*.tsbuildinfo

.nx/cache
28 changes: 20 additions & 8 deletions nx.json
@@ -1,13 +1,15 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "build-js", "test:ci", "typecheck"]
}
}
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"affected": {
"defaultBase": "main"
},
"defaultBase": "main",
"pluginsConfig": {
"@nrwl/js": {
"analyzeSourceFiles": false
}
},
"parallel": 5,
"namedInputs": {
"packageSources": [
"{workspaceRoot}/packages/**/src/**/*.ts",
Expand All @@ -18,7 +20,17 @@
"targetDefaults": {
"build": {
"outputs": ["{projectRoot}/build"],
"inputs": ["buildDeps", "^buildDeps"]
"inputs": ["buildDeps", "^buildDeps"],
"cache": true
},
"build-js": {
"cache": true
},
"test:ci": {
"cache": true
},
"typecheck": {
"cache": true
}
}
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -101,7 +101,7 @@
"jsdom": "^21.1.1",
"lerna": "^4.0.0",
"luxon": "^2.3.2",
"nx": "15.8.7",
"nx": "^17.2.7",
"prettier": "^3.0.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand All @@ -119,4 +119,4 @@
"vitest": "^0.29.3",
"vue": "^3.2.33"
}
}
}
1 change: 1 addition & 0 deletions project.json
@@ -1,4 +1,5 @@
{
"$schema": "node_modules/nx/schemas/project-schema.json",
"name": "root",
"targets": {
"build-js": {
Expand Down

0 comments on commit 51eb4b6

Please sign in to comment.