Skip to content

Commit

Permalink
chore: upgrade nx to 20 and swap nrwl for nx packages (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 authored Dec 2, 2024
2 parents 37a3e9d + 5edc13c commit 9a5242d
Show file tree
Hide file tree
Showing 8 changed files with 2,867 additions and 3,808 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ tags
# Generated Docusaurus files
.docusaurus/
.cache-loader/

.nx/cache
.nx/workspace-data
36 changes: 0 additions & 36 deletions migrations.json

This file was deleted.

39 changes: 27 additions & 12 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"npmScope": "nest-commander",
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": ["build", "test", "lint", "package", "prepare", "e2e"],
"canTrackAnalytics": false,
"showUsageWarnings": true,
"accessToken": "MzRiYTQyYzMtNmQ2Zi00YjE1LWJhNTgtOTIxNDM0ZGU4YjMyfHJlYWQtd3JpdGU=",
"parallel": 1
"showUsageWarnings": true
}
}
},
Expand All @@ -20,17 +15,37 @@
}
]
},
"affected": {
"defaultBase": "main"
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/workspace.json", "{workspaceRoot}/nx.json"],
"sharedGlobals": [
"{workspaceRoot}/workspace.json",
"{workspaceRoot}/nx.json"
],
"production": ["default"]
},
"targetDefaults": {
"build": {
"inputs": ["production", "^production"]
"inputs": ["production", "^production"],
"cache": true
},
"test": {
"cache": true
},
"lint": {
"cache": true
},
"package": {
"cache": true
},
"prepare": {
"cache": true
},
"e2e": {
"cache": true
}
}
},
"nxCloudAccessToken": "MzRiYTQyYzMtNmQ2Zi00YjE1LWJhNTgtOTIxNDM0ZGU4YjMyfHJlYWQtd3JpdGU=",
"parallel": 1,
"useInferencePlugins": false,
"defaultBase": "main"
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
"@nestjs/core": "10.4.4",
"@nestjs/schematics": "^10.1.4",
"@nestjs/testing": "10.4.4",
"@nrwl/js": "16.10.0",
"@nrwl/node": "16.10.0",
"@nrwl/nx-cloud": "16.5.2",
"@nrwl/workspace": "16.10.0",
"@nx/js": "20.1.4",
"@nx/node": "20.1.4",
"@nx/workspace": "20.1.4",
"@swc/core": "1.7.26",
"@swc/register": "0.1.10",
"@types/inquirer": "8.2.10",
Expand All @@ -81,7 +80,7 @@
"husky": "8.0.3",
"inquirer": "8.2.6",
"lint-staged": "13.3.0",
"nx": "16.10.0",
"nx": "20.1.4",
"nx-uvu": "1.3.1",
"pinst": "3.0.0",
"preact": "^10.13.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/nest-commander-schematics/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"options": {
"deleteOutputPath": true,
"main": "packages/nest-commander-schematics/src/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/nest-commander-testing/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"dependsOn": [
{
"target": "build",
Expand Down
2 changes: 1 addition & 1 deletion packages/nest-commander/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceRoot": "packages/nest-commander/src",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/js:tsc",
"options": {
"outputPath": "dist/nest-commander",
"main": "packages/nest-commander/src/index.ts",
Expand Down
Loading

0 comments on commit 9a5242d

Please sign in to comment.