Skip to content

Commit

Permalink
chore: optimize tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
spx443812507 committed Mar 22, 2023
1 parent c935c0a commit bcdf331
Show file tree
Hide file tree
Showing 9 changed files with 232 additions and 26 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"@vitejs/plugin-vue": "^3.0.0",
"@vue-macros/volar": "^0.9.1",
"@vue/compiler-sfc": "^3.2.37",
"@vue/shared": "^3.2.37",
"autoprefixer": "^10.4.8",
Expand Down
6 changes: 4 additions & 2 deletions packages/giantgo-render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "giantgo-render",
"version": "1.4.1",
"description": "A form generator and form render for Vue3 + ElementPlus",
"main": "./dist/main.umd.js",
"module": "./dist/main.es.js",
"files": ["dist"],
"main": "./dist/giantgo-render.umd.js",
"module": "./dist/giantgo-render.es.js",
"types": "./dist/giantgo-render.es.d.ts",
"exports": {
".": {
"import": "./dist/giantgo-render.es.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/giantgo-render/stats.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions packages/giantgo-render/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
"allowJs": true,
"types": ["unplugin-icons/types/vue", "unplugin-vue-macros/macros-global"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "../components/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "../components/**/*.vue"]
}
9 changes: 0 additions & 9 deletions packages/giantgo-render/tsconfig.node.json

This file was deleted.

9 changes: 0 additions & 9 deletions play/tsconfig.node.json

This file was deleted.

2 changes: 1 addition & 1 deletion play/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig({
importStyle: 'sass'
})
],
dts: '../packages/giantgo-render/components.d.ts'
dts: false
})
]
})
Loading

0 comments on commit bcdf331

Please sign in to comment.