Skip to content

Commit

Permalink
chore: update to nx 17 (#7815)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Oct 21, 2023
1 parent e8a5bb3 commit 066ccf7
Show file tree
Hide file tree
Showing 22 changed files with 364 additions and 161 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ packages/types/src/generated/**/*.ts
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.nx/cache
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ packages/website/build

# see the file header in eslint-base.test.js for more info
packages/rule-tester/tests/eslint-base

/.nx/cache
25 changes: 13 additions & 12 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": ["build", "lint", "package", "prebuild", "test"],
"accessToken": "YjIzMmMxMWItMjhiMS00NWY2LTk1NWYtYWU3YWQ0YjE4YjBlfHJlYWQ="
}
}
},
"nxCloudAccessToken": "YjIzMmMxMWItMjhiMS00NWY2LTk1NWYtYWU3YWQ0YjE4YjBlfHJlYWQ=",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"inputs": ["production", "^production"],
"cache": true
},
"test": {
"inputs": [
"default",
"{workspaceRoot}/jest.config.js",
"{workspaceRoot}/jest.config.base.js"
],
"outputs": ["{projectRoot}/coverage"]
"outputs": ["{projectRoot}/coverage"],
"cache": true
},
"lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.js",
"{workspaceRoot}/yarn.lock",
"{workspaceRoot}/.eslintignore"
]
],
"cache": true
},
"package": {
"cache": true
},
"prebuild": {
"cache": true
}
},
"namedInputs": {
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"@babel/eslint-parser": "^7.22.7",
"@babel/parser": "^7.22.7",
"@babel/types": "^7.22.5",
"@nx/jest": "16.8.1",
"@nx/linter": "16.8.1",
"@nx/workspace": "16.8.1",
"@nx/eslint": "17.0.1",
"@nx/jest": "17.0.1",
"@nx/workspace": "17.0.1",
"@prettier/sync": "^0.3.0",
"@swc/core": "^1.3.68",
"@swc/jest": "^0.2.26",
Expand Down Expand Up @@ -105,8 +105,7 @@
"markdownlint-cli": "^0.37.0",
"ncp": "^2.0.0",
"netlify": "^13.1.9",
"nx": "16.8.1",
"nx-cloud": "16.4.0",
"nx": "17.0.1",
"prettier": "3.0.3",
"pretty-format": "^29.6.2",
"raw-loader": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ast-spec/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"outputs": ["{projectRoot}/dist/**/*.ts"]
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/ast-spec/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-internal/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-tslint/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/eslint-plugin/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/parser/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/parser/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/repo-tools/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/repo-tools/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/rule-schema-to-typescript-types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/rule-tester/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/rule-tester/**/*.ts"]
Expand Down
2 changes: 1 addition & 1 deletion packages/scope-manager/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/scope-manager/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/type-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/type-utils/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": ["ast-spec"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/types/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": ["types"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/utils/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/visitor-keys/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/visitor-keys/**/*.{mts,cts,ts,tsx}"],
Expand Down
2 changes: 1 addition & 1 deletion packages/website-eslint/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"implicitDependencies": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/website/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
Expand Down
Loading

0 comments on commit 066ccf7

Please sign in to comment.