-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
51 lines (51 loc) · 1.6 KB
/
tsconfig.json
File metadata and controls
51 lines (51 loc) · 1.6 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
{
"extends": "./storage/framework/core/tsconfig.json",
// `include` / `exclude` are NOT inherited from the extended config in
// TypeScript — only `compilerOptions` is — so they have to be repeated
// here. Without these, `bunx --bun tsc --noEmit` from the project root
// walks every .d.ts under `pantry/`, where vendored third-party
// packages ship type definitions that aren't always self-consistent.
// CI runs the bare `tsc --noEmit` command, so the root tsconfig is
// what gets picked up — keep these in sync with
// `storage/framework/core/tsconfig.json` if that file changes.
//
// Caveat: TypeScript still walks anything reachable via the
// framework tsconfig's `paths` mapping (`@stacksjs/*` → framework
// src tree), regardless of `exclude`. As a result, `tsc --noEmit`
// here will surface pre-existing type debt under
// `storage/framework/core/**`. Those failures belong upstream
// in `stacksjs/stacks` and are not pet-store's to fix on this PR.
"include": [
"*.ts",
"**/*.ts",
"*.stx",
"**/*.stx",
"*.d.ts",
"**/*.d.ts"
],
"exclude": [
"node_modules",
"**/node_modules",
"dist",
"dist/**",
"pantry",
"pantry/**",
"**/cdk.out",
"**/dist",
"**/fixtures",
"**/out",
"**/tests/**",
"**/*.test.ts",
"**/*.spec.ts",
"resources/assets/**",
"cloud/**",
"config/**",
"storage/framework/views/**",
"storage/framework/auto-imports/**",
"storage/framework/requests/**",
"storage/framework/server/**",
"storage/framework/core/**/build.ts",
"**/build.ts",
".stx/**"
]
}