-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturbo.json
More file actions
105 lines (105 loc) · 3.23 KB
/
Copy pathturbo.json
File metadata and controls
105 lines (105 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"$schema": "https://turborepo.com/schema.json",
"ui": "stream",
"globalDependencies": [
"tsconfig.base.json",
"biome.jsonc",
"vitest.config.base.ts",
"vitest.config.nestjs.ts"
],
"futureFlags": {
"pruneIncludesGlobalFiles": true
},
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"index.html",
"vite.config.ts",
"tsconfig.json",
"package.json",
"../../tsconfig.base.json"
],
"outputs": ["dist/**", "!dist/node_modules/**", "*.tsbuildinfo"],
"env": [
"VITE_OIDC_ISSUER_URL",
"VITE_OIDC_CLIENT_ID",
"VITE_WS_URL",
"VITE_UPLOAD_URL",
"VITE_SERVER_ORIGIN"
]
},
"dev": {
"cache": false,
"persistent": true
},
"typecheck": {
"dependsOn": ["build"],
"inputs": [
"src/**",
"tsconfig*.json",
"package.json",
"../../tsconfig.base.json"
],
"outputs": []
},
"lint": {
// `dependsOn: ["build"]` SURVIVES the ESLint→Biome migration, for a
// NEW reason. It originally existed because
// eslint-import-resolver-typescript raced the temporary package.json
// tshy writes mid-build (commit edec802). Biome has no import resolver
// — but `correctness/noUndeclaredDependencies` resolves imports against
// the CLOSEST package.json, and tshy's `setFolderDialect("src", …)`
// drops a transient `src/package.json` (only `{type, sideEffects,
// imports}` — NO dependency sections) for the duration of the build.
// While it exists, every import under `src/` looks undeclared:
// reproduced at 141 spurious errors in @orpc-ws/client alone. Neither
// a `files.includes` force-ignore nor `vcs.useIgnoreFile` suppresses it
// — Biome's project scanner ingests manifests regardless. So the build
// barrier stays until either tshy stops writing that file or the rule
// gains a workspace-aware resolution mode.
//
// No explicit `inputs`: `biome lint .` lints the WHOLE package dir, not
// just `src/**`. The old `["src/**", …]` list silently under-keyed the
// cache for packages whose sources live elsewhere (tests-e2e keeps its
// code in fixtures/ pages/ setup/ workflows/), which could serve a stale
// green. Turbo's default — every non-gitignored file in the package —
// is the correct key here; `biome.jsonc` is covered by
// `globalDependencies`.
"dependsOn": ["build"],
"outputs": []
},
"test": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tests/**",
"vitest.config.ts",
"../../vitest.config.base.ts",
"package.json"
],
"outputs": []
},
"test:coverage": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tests/**",
"vitest.config.ts",
"../../vitest.config.base.ts",
"package.json"
],
"outputs": ["coverage/**"]
},
"test:e2e": {
"dependsOn": ["^build"],
"cache": false,
"outputs": ["playwright-report/**", "test-results/**", "junit.xml"]
},
"clean": {
"cache": false,
"outputs": []
}
}
}