build: prevent tsconfig includes sources outside (#2643)

This commit is contained in:
LongYinan
2023-06-01 17:08:14 +08:00
committed by GitHub
parent 5df89a925b
commit 602f795133
25 changed files with 160 additions and 107 deletions

View File

@@ -1,18 +1,18 @@
{
"extends": "../../tsconfig.json",
"include": [
"./src/**/*.ts",
"./src/**/*.tsx",
"./src/**/*.json",
"../workspace/src",
"../../apps/electron/layers/**/src"
"exclude": [
"lib",
"./src/components/page-list/filter/shared-types.tsx",
"./src/components/page-list/filter/logic/custom-type.ts",
"./src/components/page-list/filter/logic/matcher.ts",
"./src/components/page-list/filter/logic/typesystem.ts"
],
"include": ["./src/**/*", "./src/**/*.json"],
"compilerOptions": {
"composite": true,
"noEmit": false,
"outDir": "lib"
},
"exclude": ["lib"],
"references": [
{
"path": "../debug"
@@ -26,9 +26,14 @@
{
"path": "../hooks"
},
{ "path": "../workspace" },
{
"path": "../../apps/electron"
},
{
"path": "./tsconfig.node.json"
},
{ "path": "./tsconfig.workspace.json" },
{ "path": "../../tests/fixtures" }
]
}