build: prevent tsconfig includes sources outside (#2643)

This commit is contained in:
LongYinan
2023-06-01 17:08:14 +08:00
committed by Himself65
parent 2a31af0973
commit 4ab5457a44
25 changed files with 160 additions and 107 deletions

View File

@@ -5,7 +5,7 @@
"noEmit": false,
"outDir": "lib"
},
"include": ["./src", "./src/affine/api", "../../apps/electron/layers"],
"include": ["./src", "./src/affine/api"],
"exclude": ["lib"],
"references": [
{ "path": "../../tests/fixtures" },
@@ -13,6 +13,7 @@
{ "path": "../env" },
{ "path": "../debug" },
{ "path": "../hooks" },
{ "path": "../component" }
{ "path": "../component/tsconfig.workspace.json" },
{ "path": "../../apps/electron" }
]
}