Skip to content

Commit aaac13c

Browse files
authored
chore: update nx version (#17)
1 parent 9390398 commit aaac13c

File tree

4 files changed

+1930
-1613
lines changed

4 files changed

+1930
-1613
lines changed

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getJestProjectsAsync } from '@nx/jest';
1+
const { getJestProjectsAsync } = require('@nx/jest');
22

3-
export default async () => ({
3+
module.exports = async () => ({
44
projects: await getJestProjectsAsync(),
55
});

nx.json

Lines changed: 18 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"defaultBase": "dev",
33
"$schema": "./node_modules/nx/schemas/nx-schema.json",
44
"namedInputs": {
5-
"default": [
6-
"{projectRoot}/**/*",
7-
"sharedGlobals"
8-
],
5+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
96
"production": [
107
"default",
118
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
@@ -19,9 +16,7 @@
1916
"!{projectRoot}/jest.config.[jt]s",
2017
"!{projectRoot}/test-setup.[jt]s"
2118
],
22-
"sharedGlobals": [
23-
"{workspaceRoot}/.github/workflows/ci.yml"
24-
]
19+
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"]
2520
},
2621
"nxCloudId": "",
2722
"neverConnectToCloud": true,
@@ -42,7 +37,6 @@
4237
"plugin": "@nx/vite/plugin",
4338
"options": {
4439
"buildTargetName": "build",
45-
"testTargetName": "test",
4640
"serveTargetName": "serve",
4741
"previewTargetName": "preview",
4842
"serveStaticTargetName": "serve-static",
@@ -127,12 +121,16 @@
127121
"pubDepsTargetName": "pub-deps",
128122
"pubVersionTargetName": "pub-version"
129123
}
124+
},
125+
{
126+
"plugin": "@nx/vitest",
127+
"options": {
128+
"testTargetName": "test"
129+
}
130130
}
131131
],
132132
"release": {
133-
"projects": [
134-
"apps/server"
135-
],
133+
"projects": ["apps/server"],
136134
"projectsRelationship": "independent",
137135
"changelog": {
138136
"projectChangelogs": {
@@ -158,45 +156,25 @@
158156
},
159157
"targetDefaults": {
160158
"build": {
161-
"dependsOn": [
162-
"^build"
163-
],
164-
"inputs": [
165-
"production",
166-
"^production"
167-
]
159+
"dependsOn": ["^build"],
160+
"inputs": ["production", "^production"]
168161
},
169162
"zip": {
170-
"dependsOn": [
171-
"^build"
172-
],
173-
"inputs": [
174-
"production",
175-
"^production"
176-
]
163+
"dependsOn": ["^build"],
164+
"inputs": ["production", "^production"]
177165
},
178166
"dev": {
179-
"dependsOn": [
180-
"^build"
181-
],
182-
"inputs": [
183-
"default"
184-
]
167+
"dependsOn": ["^build"],
168+
"inputs": ["default"]
185169
},
186170
"e2e-ci--**/*": {
187-
"dependsOn": [
188-
"^build"
189-
]
171+
"dependsOn": ["^build"]
190172
},
191173
"test": {
192-
"dependsOn": [
193-
"^build"
194-
]
174+
"dependsOn": ["^build"]
195175
},
196176
"e2e-ci--**/**": {
197-
"dependsOn": [
198-
"^build"
199-
]
177+
"dependsOn": ["^build"]
200178
}
201179
},
202180
"generators": {

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@
88
"@eslint/compat": "^1.4.1",
99
"@eslint/js": "^9.39.2",
1010
"@monodon/rust": "^2.3.0",
11-
"@nx/devkit": "21.3.5",
12-
"@nx/eslint": "21.3.5",
13-
"@nx/eslint-plugin": "21.3.5",
14-
"@nx/jest": "21.3.5",
15-
"@nx/js": "21.3.5",
16-
"@nx/next": "21.3.5",
17-
"@nx/playwright": "21.3.5",
18-
"@nx/react": "21.3.5",
19-
"@nx/storybook": "21.3.5",
20-
"@nx/vite": "21.3.5",
21-
"@nx/web": "21.3.5",
11+
"@nx/devkit": "22.3.3",
12+
"@nx/eslint": "22.3.3",
13+
"@nx/eslint-plugin": "22.3.3",
14+
"@nx/jest": "22.3.3",
15+
"@nx/js": "22.3.3",
16+
"@nx/next": "22.3.3",
17+
"@nx/playwright": "22.3.3",
18+
"@nx/react": "22.3.3",
19+
"@nx/storybook": "22.3.3",
20+
"@nx/vite": "22.3.3",
21+
"@nx/vitest": "22.3.3",
22+
"@nx/web": "22.3.3",
23+
"@nxrocks/nx-flutter": "^10.0.1",
2224
"@playwright/test": "^1.57.0",
2325
"@storybook/addon-essentials": "^8.6.14",
2426
"@storybook/addon-interactions": "^8.6.14",
2527
"@storybook/core-server": "^8.6.14",
2628
"@storybook/jest": "^0.2.3",
27-
"@storybook/react": "9.0.9",
28-
"@storybook/react-vite": "9.0.9",
29+
"@storybook/react": "10.1.9",
30+
"@storybook/react-vite": "10.1.9",
2931
"@storybook/test-runner": "^0.19.1",
3032
"@storybook/testing-library": "^0.2.2",
3133
"@swc-node/register": "^1.11.1",
@@ -40,12 +42,12 @@
4042
"@types/react-dom": "19.0.0",
4143
"@vitejs/plugin-react": "^4.7.0",
4244
"@vitejs/plugin-react-oxc": "^0.2.3",
43-
"@vitest/coverage-v8": "^3.2.4",
44-
"@vitest/ui": "^3.2.4",
45+
"@vitest/coverage-v8": "4.0.9",
46+
"@vitest/ui": "4.0.9",
4547
"autoprefixer": "^10.4.23",
4648
"babel-jest": "30.0.5",
4749
"eslint": "^9.39.2",
48-
"eslint-config-next": "^14.2.35",
50+
"eslint-config-next": "16.1.4",
4951
"eslint-config-prettier": "^9.1.2",
5052
"eslint-plugin-import": "^2.32.0",
5153
"eslint-plugin-jsx-a11y": "^6.10.2",
@@ -57,24 +59,23 @@
5759
"jest-util": "~30.0.5",
5860
"jiti": "2.4.2",
5961
"jsdom": "^22.1.0",
60-
"nx": "21.3.5",
62+
"nx": "22.3.3",
6163
"postcss": "^8.5.6",
6264
"prettier": "^2.8.8",
63-
"storybook": "9.1.17",
65+
"storybook": "10.1.9",
6466
"tailwindcss": "^3.4.19",
6567
"ts-jest": "29.4.0",
6668
"ts-node": "10.9.1",
6769
"tslib": "^2.8.1",
6870
"typescript": "^5.9.3",
6971
"typescript-eslint": "^8.50.1",
7072
"unocss": "^66.5.11",
71-
"vite": "npm:rolldown-vite@^7.3.0",
73+
"vite": "7.3.1",
7274
"vite-plugin-dts": "^3.9.1",
73-
"vitest": "^3.2.4",
74-
"@nxrocks/nx-flutter": "^10.0.1"
75+
"vitest": "4.0.9"
7576
},
7677
"dependencies": {
77-
"next": "^15.5.9",
78+
"next": "16.0.9",
7879
"react": "^19.2.3",
7980
"react-dom": "^19.2.3",
8081
"react-router-dom": "6.29.0"

0 commit comments

Comments
 (0)