Skip to content

Commit

Permalink
chore: upgrade nx to latest (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 authored Aug 20, 2024
2 parents 807cf87 + 8905226 commit 093f3f1
Show file tree
Hide file tree
Showing 9 changed files with 5,978 additions and 4,858 deletions.
11 changes: 8 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
]
}
],

"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -32,12 +31,18 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
}
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ testem.log
Thumbs.db

.env

.nx/cache
.nx/workspace-data
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

/dist
/coverage

/.nx/cache
/.nx/workspace-data
44 changes: 27 additions & 17 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"npmScope": "nest-lab",
"affected": {
"defaultBase": "main"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"],
"accessToken": "",
"canTrackAnalytics": false,
"showUsageWarnings": true
}
Expand All @@ -26,9 +19,6 @@
"appsDir": "apps",
"libsDir": "packages"
},
"cli": {
"defaultCollection": "@nx/workspace"
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
Expand All @@ -37,18 +27,38 @@
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s"
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s"
]
},
"targetDefaults": {
"build": {
"inputs": ["production", "^production"]
},
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
"inputs": ["production", "^production"],
"cache": true
},
"test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
}
},
"nxCloudAccessToken": "",
"useInferencePlugins": false,
"defaultBase": "main"
}
39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,33 @@
"@nestjs/platform-fastify": "10.0.3",
"@nestjs/schematics": "10.0.1",
"@nestjs/testing": "10.0.3",
"@nrwl/tao": "16.4.0",
"@nx/eslint-plugin": "16.4.0",
"@nx/jest": "16.4.0",
"@nx/js": "16.4.0",
"@nx/linter": "16.4.0",
"@nx/nest": "16.4.0",
"@nx/workspace": "16.4.0",
"@nrwl/tao": "19.6.1",
"@nx/eslint-plugin": "19.6.1",
"@nx/jest": "19.6.1",
"@nx/js": "19.6.1",
"@nx/nest": "19.6.1",
"@nx/workspace": "19.6.1",
"@sinclair/typebox": "^0.31.14",
"@swc/core": "^1.2.218",
"@swc/core": "1.5.7",
"@swc/register": "^0.1.10",
"@types/jest": "29.4.4",
"@types/node": "18.7.1",
"@types/jest": "29.5.12",
"@types/node": "18.19.9",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "5.60.1",
"@typescript-eslint/parser": "5.60.1",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"ajv": "^8.12.0",
"arktype": "1.0.21-alpha",
"dotenv": "8.2.0",
"eslint": "8.20.0",
"eslint-config-prettier": "8.1.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"fastify": "^4.18.0",
"fastify-multer": "^2.0.3",
"io-ts": "^2.2.20",
"jest": "29.4.3",
"jest-environment-jsdom": "28.1.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-environment-node": "^29.4.1",
"joi": "^17.10.1",
"nx": "16.4.0",
"nx-cloud": "16.5.2",
"nx": "19.6.1",
"ow": "^0.28.2",
"pactum": "^3.1.13",
"prettier": "^2.7.1",
Expand All @@ -75,9 +73,10 @@
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"tslib": "^2.4.0",
"typescript": "5.1.5",
"typescript": "5.5.4",
"valibot": "^0.15.0",
"yup": "^1.2.0",
"zod": "^3.22.2"
"zod": "^3.22.2",
"@nx/eslint": "19.6.1"
}
}
7 changes: 2 additions & 5 deletions packages/fastify-multer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@
]
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/fastify-multer/**/*.ts"]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "nx:run-commands",
Expand Down
11 changes: 4 additions & 7 deletions packages/or-guard/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
"projectType": "library",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["packages/or-guard/**/*.ts"]
}
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/packages/or-guard"],
"options": {
"jestConfig": "packages/or-guard/jest.config.ts",
"passWithNoTests": true
"jestConfig": "packages/or-guard/jest.config.ts"
}
},
"build": {
Expand All @@ -26,7 +22,8 @@
"tsConfig": "packages/or-guard/tsconfig.lib.json",
"packageJson": "packages/or-guard/package.json",
"main": "packages/or-guard/src/index.ts",
"assets": ["packages/or-guard/*.md"]
"assets": ["packages/or-guard/*.md"],
"updateBuildableProjectDepsInPackageJson": true
}
},
"publish": {
Expand Down
16 changes: 3 additions & 13 deletions packages/typeschema/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,14 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/typeschema/**/*.ts"]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/typeschema/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "packages/typeschema/jest.config.ts"
}
},
"publish": {
Expand Down
Loading

0 comments on commit 093f3f1

Please sign in to comment.