chore(packages/components): change d.ts dist folder

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/582/head
Ryan Wang 2022-06-16 22:08:42 +08:00
parent 7df63685cf
commit b142b3ca80
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
"module": "./dist/halo-components.es.js", "module": "./dist/halo-components.es.js",
"unpkg": "./dist/halo-components.iife.js", "unpkg": "./dist/halo-components.iife.js",
"jsdelivr": "./dist/halo-components.iife.js", "jsdelivr": "./dist/halo-components.iife.js",
"types": "./dist/typings/index.d.ts", "types": "./dist/index.d.ts",
"scripts": { "scripts": {
"dev": "vite build --watch", "dev": "vite build --watch",
"build": "vite build", "build": "vite build",
@ -60,6 +60,7 @@
}, },
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts",
"import": "./dist/halo-components.es.js", "import": "./dist/halo-components.es.js",
"require": "./dist/halo-components.umd.js" "require": "./dist/halo-components.umd.js"
}, },

View File

@ -14,7 +14,7 @@ export default defineConfig({
Icons(), Icons(),
Dts({ Dts({
entryRoot: "./src", entryRoot: "./src",
outputDir: "./dist/typings", outputDir: "./dist",
insertTypesEntry: true, insertTypesEntry: true,
}), }),
], ],