refactor: project tsconfig & abstract infra type (#2721)

This commit is contained in:
Himself65
2023-06-08 12:41:47 +08:00
committed by GitHub
parent 05288be934
commit 1ad2e629ac
14 changed files with 149 additions and 207 deletions

View File

@@ -12,10 +12,12 @@
"cheerio": "^1.0.0-rc.12"
},
"devDependencies": {
"electron": "=25.0.1",
"react": "18.3.0-canary-16d053d59-20230506",
"react-dom": "18.3.0-canary-16d053d59-20230506"
},
"peerDependencies": {
"electron": "*",
"react": "*",
"react-dom": "*"
},

View File

@@ -1,8 +1,19 @@
{
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"rootDir": "./src",
"types": ["electron"]
"noEmit": false,
"outDir": "lib"
},
"include": ["**.ts", "**.tsx"]
"references": [
{
"path": "../../packages/component"
},
{
"path": "../../packages/plugin-infra"
},
{
"path": "../../packages/env"
}
]
}