fix: tsconfig (#7319)

This commit is contained in:
三咲智子 2022-04-22 09:43:38 +08:00 committed by GitHub
parent 5f58657b69
commit 1028264c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 16 deletions

View File

@ -1,20 +1,7 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"compilerOptions": {
"allowJs": true,
"module": "ESNext",
"target": "ES2018",
"noImplicitAny": false,
"declaration": true,
"sourceMap": true,
"lib": ["ES2018", "DOM", "DOM.Iterable"],
"allowSyntheticDefaultImports": true,
"types": ["unplugin-vue-define-options"]
},
"references": [
{ "path": "./tsconfig.web.json" },
{ "path": "./tsconfig.vite-config.json" },
{ "path": "./tsconfig.vitest.json" }
],
"include": ["packages", "typings"],
"exclude": ["node_modules", "**/dist", "**/__tests__/**/*"]
]
}

View File

@ -1,6 +1,7 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["packages/**/*", "vitest.setup.ts"],
"include": ["packages", "vitest.setup.ts"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"composite": true,
"lib": ["DOM"],

22
tsconfig.web.json Normal file
View File

@ -0,0 +1,22 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"compilerOptions": {
"allowJs": true,
"module": "ESNext",
"target": "ES2018",
"noImplicitAny": false,
"declaration": true,
"sourceMap": true,
"lib": ["ES2018", "DOM", "DOM.Iterable"],
"allowSyntheticDefaultImports": true,
"types": ["unplugin-vue-define-options"]
},
"include": ["packages", "typings"],
"exclude": [
"node_modules",
"**/dist",
"**/__tests__/**/*",
"**/test/**",
"**/tests/**"
]
}