Skip to content

Commit bdb869a

Browse files
committed
chore: enable composite tsconfig and drop dist references
Marks the root project as composite and pins types: ["node"] so @types/node resolves cleanly without leaking globals from other ambient packages. The test tsconfig dropped its outDir (we never emit) and the back-reference to the root project that composite makes redundant. Ignores the *.tsbuildinfo artifact composite mode now produces.
1 parent 2d0ae78 commit bdb869a

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist
33
coverage
44
tmp/
55
.vscode/
6+
*.tsbuildinfo

__tests__/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./dist"
5-
},
6-
"include": ["."],
7-
"references": [{ "path": "../tsconfig.json" }]
3+
"include": ["."]
84
}

tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"extends": ["@tsconfig/node24", "@tsconfig/strictest"],
33
"compilerOptions": {
4+
"composite": true,
45
"noEmit": true,
56
"allowImportingTsExtensions": true,
67
"noPropertyAccessFromIndexSignature": false,
78
"resolveJsonModule": true,
8-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"types": ["node"]
911
},
10-
"include": ["./lib", "./bin", "__tests__"],
11-
"exclude": ["./dist", "node_modules"]
12+
"include": ["./lib", "./bin"],
13+
"exclude": ["node_modules"]
1214
}

0 commit comments

Comments
 (0)