Skip to content

Commit db78d8e

Browse files
committed
build: upgrade nx to latest
1 parent 40e778e commit db78d8e

File tree

10 files changed

+1092
-825
lines changed

10 files changed

+1092
-825
lines changed

.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@
2424
{
2525
"files": ["*.ts", "*.tsx"],
2626
"extends": ["plugin:@nx/typescript"],
27-
"rules": {}
27+
"rules": {
28+
"@typescript-eslint/no-extra-semi": "error",
29+
"no-extra-semi": "off"
30+
}
2831
},
2932
{
3033
"files": ["*.js", "*.jsx"],
3134
"extends": ["plugin:@nx/javascript"],
32-
"rules": {}
35+
"rules": {
36+
"@typescript-eslint/no-extra-semi": "error",
37+
"no-extra-semi": "off"
38+
}
3339
}
3440
]
3541
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ testem.log
3939
Thumbs.db
4040

4141
.nx/cache
42+
.nx/workspace-data

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/coverage
44
/.nx/cache
55
pnpm-*.yaml
6+
7+
/.nx/workspace-data

examples/typescript-001/project.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "examples/typescript-001/src",
55
"projectType": "application",
6+
"tags": [],
67
"targets": {
78
"build": {
89
"executor": "@nx/vite:build",
@@ -60,9 +61,7 @@
6061
}
6162
},
6263
"lint": {
63-
"executor": "@nx/eslint:lint",
64-
"outputs": ["{options.outputFile}"]
64+
"executor": "@nx/eslint:lint"
6565
}
66-
},
67-
"tags": []
66+
}
6867
}

migrations.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"migrations": [
3+
{
4+
"cli": "nx",
5+
"version": "17.3.0-beta.6",
6+
"description": "Updates the nx wrapper.",
7+
"implementation": "./src/migrations/update-17-3-0/update-nxw",
8+
"package": "nx",
9+
"name": "17.3.0-update-nx-wrapper"
10+
},
11+
{
12+
"cli": "nx",
13+
"version": "18.0.0-beta.2",
14+
"description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
15+
"implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
16+
"x-repair-skip": true,
17+
"package": "nx",
18+
"name": "18.0.0-disable-adding-plugins-for-existing-workspaces"
19+
},
20+
{
21+
"version": "18.1.0-beta.3",
22+
"description": "Moves affected.defaultBase to defaultBase in `nx.json`",
23+
"implementation": "./src/migrations/update-17-2-0/move-default-base",
24+
"package": "nx",
25+
"name": "move-default-base-to-nx-json-root"
26+
},
27+
{
28+
"cli": "nx",
29+
"version": "19.2.0-beta.2",
30+
"description": "Updates the default workspace data directory to .nx/workspace-data",
31+
"implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory",
32+
"package": "nx",
33+
"name": "19-2-0-move-graph-cache-directory"
34+
},
35+
{
36+
"cli": "nx",
37+
"version": "19.2.2-beta.0",
38+
"description": "Updates the nx wrapper.",
39+
"implementation": "./src/migrations/update-17-3-0/update-nxw",
40+
"package": "nx",
41+
"name": "19-2-2-update-nx-wrapper"
42+
},
43+
{
44+
"version": "19.2.4-beta.0",
45+
"description": "Set project name in nx.json explicitly",
46+
"implementation": "./src/migrations/update-19-2-4/set-project-name",
47+
"x-repair-skip": true,
48+
"package": "nx",
49+
"name": "19-2-4-set-project-name"
50+
},
51+
{
52+
"version": "17.3.0-beta.0",
53+
"description": "Move the vitest coverage thresholds in their own object if exists and add reporters.",
54+
"implementation": "./src/migrations/update-17-3-0/vitest-coverage-and-reporters",
55+
"package": "@nx/vite",
56+
"name": "vitest-coverage-and-reporters"
57+
},
58+
{
59+
"version": "17.2.9",
60+
"description": "Move executor options to target defaults",
61+
"implementation": "./src/migrations/update-17-2-9/move-options-to-target-defaults",
62+
"package": "@nx/eslint",
63+
"name": "move-options-to-target-defaults"
64+
},
65+
{
66+
"cli": "nx",
67+
"version": "19.1.0-beta.6",
68+
"description": "Migrate no-extra-semi rules into user config, out of nx extendable configs",
69+
"implementation": "./src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi",
70+
"package": "@nx/eslint-plugin",
71+
"name": "update-19-1-0-rename-no-extra-semi"
72+
},
73+
{
74+
"cli": "nx",
75+
"version": "18.0.0-beta.0",
76+
"description": "Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/webpack:webpack' is used for Module Federation.",
77+
"factory": "./src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults",
78+
"package": "@nx/react",
79+
"name": "add-module-federation-env-var-to-target-defaults"
80+
},
81+
{
82+
"cli": "nx",
83+
"version": "18.1.1-beta.0",
84+
"description": "Ensure targetDefaults inputs for task hashing when '@nx/webpack:webpack' is used are correct for Module Federation.",
85+
"factory": "./src/migrations/update-18-1-1/fix-target-defaults-inputs",
86+
"package": "@nx/react",
87+
"name": "fix-target-defaults-for-webpack"
88+
}
89+
]
90+
}

nx.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,25 @@
99
"targetDefaults": {
1010
"build": {
1111
"cache": true,
12-
"dependsOn": ["^build"]
12+
"dependsOn": [
13+
"^build"
14+
]
1315
},
14-
"lint": {
16+
"@nx/vite:test": {
17+
"cache": true,
18+
"inputs": [
19+
"default",
20+
"^default"
21+
]
22+
},
23+
"@nx/eslint:lint": {
1524
"cache": true,
1625
"inputs": [
1726
"default",
1827
"{workspaceRoot}/.eslintrc.json",
1928
"{workspaceRoot}/.eslintignore",
2029
"{workspaceRoot}/eslint.config.js"
2130
]
22-
},
23-
"@nx/vite:test": {
24-
"cache": true,
25-
"inputs": ["default", "^default"]
2631
}
2732
},
2833
"workspaceLayout": {
@@ -45,5 +50,6 @@
4550
"linter": "eslint"
4651
}
4752
}
48-
}
53+
},
54+
"useInferencePlugins": false
4955
}

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,53 +16,53 @@
1616
},
1717
"private": true,
1818
"dependencies": {
19-
"@swc/helpers": "~0.5.2",
20-
"react": "18.2.0",
21-
"react-dom": "18.2.0",
22-
"tslib": "^2.3.0"
19+
"@swc/helpers": "0.5.11",
20+
"react": "18.3.1",
21+
"react-dom": "18.3.1",
22+
"tslib": "^2.6.3"
2323
},
2424
"devDependencies": {
2525
"@babel/core": "^7.14.5",
2626
"@babel/preset-react": "^7.14.5",
27-
"@nx/devkit": "^17.2.8",
28-
"@nx/eslint": "17.2.8",
29-
"@nx/eslint-plugin": "17.2.8",
30-
"@nx/js": "17.2.8",
31-
"@nx/react": "^17.2.8",
32-
"@nx/vite": "17.2.8",
27+
"@nx/devkit": "19.4.0",
28+
"@nx/eslint": "19.4.0",
29+
"@nx/eslint-plugin": "19.4.0",
30+
"@nx/js": "19.4.0",
31+
"@nx/react": "19.4.0",
32+
"@nx/vite": "19.4.0",
3333
"@release-it/bumper": "^6.0.1",
34-
"@swc-node/register": "~1.6.7",
35-
"@swc/cli": "~0.1.62",
36-
"@swc/core": "~1.3.85",
37-
"@testing-library/react": "14.0.0",
38-
"@types/node": "18.16.9",
39-
"@types/react": "18.2.33",
40-
"@types/react-dom": "18.2.14",
34+
"@swc-node/register": "1.9.2",
35+
"@swc/cli": "0.3.14",
36+
"@swc/core": "1.5.7",
37+
"@testing-library/react": "15.0.6",
38+
"@types/node": "18.19.9",
39+
"@types/react": "18.3.1",
40+
"@types/react-dom": "18.3.0",
4141
"@types/yargs": "^17.0.32",
42-
"@typescript-eslint/eslint-plugin": "^6.9.1",
43-
"@typescript-eslint/parser": "^6.9.1",
42+
"@typescript-eslint/eslint-plugin": "7.9.0",
43+
"@typescript-eslint/parser": "7.9.0",
4444
"@vitejs/plugin-react": "^4.2.0",
45-
"@vitest/coverage-v8": "~0.34.6",
46-
"@vitest/ui": "~0.34.6",
47-
"eslint": "~8.48.0",
45+
"@vitest/coverage-v8": "1.6.0",
46+
"@vitest/ui": "1.6.0",
47+
"eslint": "8.57.0",
4848
"eslint-config-prettier": "^9.0.0",
4949
"eslint-plugin-import": "2.27.5",
5050
"eslint-plugin-jsx-a11y": "6.7.1",
5151
"eslint-plugin-react": "7.32.2",
5252
"eslint-plugin-react-hooks": "4.6.0",
5353
"jsdom": "~22.1.0",
54-
"nx": "17.2.8",
54+
"nx": "19.4.0",
5555
"prettier": "^2.6.2",
5656
"release-it": "^17.0.1",
5757
"ts-node": "10.9.1",
5858
"typedoc": "^0.25.6",
5959
"typedoc-plugin-markdown": "^3.17.1",
60-
"typescript": "~5.2.2",
60+
"typescript": "5.4.5",
6161
"url-loader": "^4.1.1",
62-
"valtio": "^1.12.1",
62+
"valtio": "^1.13.2",
6363
"verdaccio": "^5.0.4",
6464
"vite": "^5.0.0",
65-
"vitest": "~0.34.6",
65+
"vitest": "1.6.0",
6666
"yargs": "^17.7.2"
6767
},
6868
"nx": {

packages/history-utility/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"valtio-utility"
1717
],
1818
"dependencies": {
19-
"tslib": "^2.3.0"
19+
"tslib": "^2.6.3"
2020
},
2121
"peerDependencies": {
2222
"valtio": ">=1.0.0"

packages/history-utility/project.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/history-utility/src",
55
"projectType": "library",
6+
"tags": ["publish"],
67
"targets": {
78
"build": {
89
"executor": "@nx/js:tsc",
@@ -22,8 +23,7 @@
2223
}
2324
},
2425
"lint": {
25-
"executor": "@nx/eslint:lint",
26-
"outputs": ["{options.outputFile}"]
26+
"executor": "@nx/eslint:lint"
2727
},
2828
"test": {
2929
"executor": "@nx/vite:test",
@@ -41,6 +41,5 @@
4141
]
4242
}
4343
}
44-
},
45-
"tags": ["publish"]
44+
}
4645
}

0 commit comments

Comments
 (0)