Skip to content

Commit 82c2edd

Browse files
committed
chore: update project configuration by removing Turbo and adding NX support
1 parent 3b0d3e4 commit 82c2edd

File tree

6 files changed

+1179
-489
lines changed

6 files changed

+1179
-489
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ stats.html
4646
*.tgz
4747
eslint-results.sarif
4848
.tsup
49+
50+
51+
52+
.nx/cache
53+
.nx/workspace-data

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
}
4848
],
4949
"files.exclude": {
50-
"**/.turbo": true,
5150
"*.bundled_*.mjs": true
5251
},
5352
"mdx.server.enable": true,

nx.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"targetDefaults": {
4+
"build": {
5+
"dependsOn": [
6+
"^build"
7+
],
8+
"outputs": [
9+
"{projectRoot}/dist"
10+
],
11+
"cache": true
12+
},
13+
"build:docs": {
14+
"outputs": [
15+
"{projectRoot}/docs"
16+
],
17+
"cache": true
18+
},
19+
"lint": {
20+
"cache": true
21+
},
22+
"lint:type": {
23+
"cache": true
24+
}
25+
},
26+
"defaultBase": "main",
27+
"plugins": [
28+
{
29+
"plugin": "@nx/eslint/plugin",
30+
"options": {
31+
"targetName": "eslint:lint"
32+
}
33+
}
34+
]
35+
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
"author": "Eva1ent<[email protected]>",
2727
"type": "module",
2828
"scripts": {
29-
"build": "pnpm run update:version && turbo build --filter=\"./packages/**\"",
30-
"build:all": "pnpm run build && pnpm run build:docs && pnpm run build:website && pnpm run build:workspace",
31-
"build:docs": "turbo build:docs --filter=\"./packages/**\" && pnpm run update:readme",
32-
"build:force": "turbo build --force --filter=\"./packages/**\"",
29+
"build": "pnpm run update:version && nx run-many -t build --projects=\"packages/**\"",
30+
"build:all": "nx run-many -t build",
31+
"build:docs": "nx run-many -t build:docs --projects=\"packages/**\" && pnpm run update:readme",
3332
"build:website": "pnpm -F \"./website\" run build",
3433
"build:workspace": "pnpm -F \"./workspace/*\" run build",
3534
"format:check": "dprint check",
@@ -46,7 +45,7 @@
4645
"lint:type": "pnpm -r run --parallel lint:type",
4746
"lint:website": "pnpm -F \"./website\" run lint",
4847
"prepare": "lefthook install && pnpm run build",
49-
"test": "vitest --run --logHeapUsage",
48+
"test": "vitest run --logHeapUsage",
5049
"update:readme": "tsx ./scripts/update-readme.ts",
5150
"update:version": "tsx ./scripts/update-version.ts"
5251
},
@@ -56,6 +55,7 @@
5655
"@eslint/js": "^9.18.0",
5756
"@eslint/markdown": "^6.2.1",
5857
"@napi-rs/canvas": "^0.1.65",
58+
"@nx/eslint": "20.3.1",
5959
"@stylistic/eslint-plugin": "^2.13.0",
6060
"@susisu/eslint-plugin-safe-typescript": "^0.9.2",
6161
"@swc/core": "^1.10.7",
@@ -67,7 +67,7 @@
6767
"@typescript-eslint/parser": "^8.20.0",
6868
"@typescript-eslint/rule-tester": "^8.20.0",
6969
"@typescript-eslint/types": "^8.20.0",
70-
"@vitest/ui": "^2.1.8",
70+
"@vitest/ui": "^3.0.1",
7171
"@workspace/configs": "workspace:*",
7272
"@workspace/eslint-plugin-local": "workspace:*",
7373
"concurrently": "^9.1.2",
@@ -90,6 +90,7 @@
9090
"jiti": "^2.4.2",
9191
"lefthook": "^1.10.7",
9292
"markdownlint": "^0.37.4",
93+
"nx": "20.3.1",
9394
"ofetch": "^1.4.1",
9495
"picocolors": "^1.1.1",
9596
"publint": "^0.3.2",
@@ -101,14 +102,13 @@
101102
"ts-pattern": "^5.6.0",
102103
"tsup": "^8.3.5",
103104
"tsx": "^4.19.2",
104-
"turbo": "^2.3.3",
105105
"type-fest": "^4.32.0",
106106
"typedoc": "^0.27.6",
107107
"typedoc-plugin-markdown": "^4.4.1",
108108
"typedoc-plugin-rename-defaults": "^0.7.2",
109109
"typescript": "^5.7.3",
110110
"typescript-eslint": "^8.20.0",
111-
"vitest": "^2.1.8"
111+
"vitest": "^3.0.1"
112112
},
113113
"engines": {
114114
"node": ">=18.18.0"

0 commit comments

Comments
 (0)