Skip to content

Commit 8a936ee

Browse files
committed
Composite non-cyclical are a pain!
1 parent e41704d commit 8a936ee

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

__tests__/tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
{
33
"extends": "../tsconfig.json",
44
"compilerOptions": {
5-
// "rootDir": "../",
5+
"rootDir": "../",
66
"types": ["jest", "node"],
77
"composite": true,
88
"allowJs": true,
99
"sourceMap": true,
1010
},
11-
"exclude": ["./tsconfig.json"],
12-
// "references": [{ "path": "../tsconfig.json" }],
11+
"references": [{ "path": "../src/" }],
1312
"include": [
14-
"./**/*",
1513
"./**/*",
1614
"./*",
17-
"../src/**/*",
1815
"../jest*.ts",
1916
"../tsconfig.aliases.json",
2017
"../package.json",

src/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../",
5+
"types": ["node"],
6+
"composite": true,
7+
"allowJs": true,
8+
"sourceMap": true,
9+
},
10+
"include": ["./**/*", "./*"],
11+
"exclude": ["node_modules"],
12+
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686
/* Disallow inconsistently-cased references to the same file. */
8787
"composite": true,
8888
},
89-
"include": ["src/**/*", "bin/**/*"],
89+
"include": ["bin/**/*"],
9090
"exclude": ["node_modules"],
9191

92-
"references": [{ "path": "./__tests__/tsconfig.json" }],
92+
"references": [{ "path": "./__tests__/" }, { "path": "./src/" }],
9393
"ts-node": {
9494
// Runtime help for ts-node
9595
"require": ["tsconfig-paths/register"],

0 commit comments

Comments
 (0)