mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix: tsconfig (#7319)
This commit is contained in:
parent
5f58657b69
commit
1028264c62
@ -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__/**/*"]
|
||||
]
|
||||
}
|
||||
|
@ -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
22
tsconfig.web.json
Normal 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/**"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user