Browse Source

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

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/582/head
Ryan Wang 2 years ago
parent
commit
b142b3ca80
  1. 3
      packages/components/package.json
  2. 2
      packages/components/vite.config.ts

3
packages/components/package.json

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

2
packages/components/vite.config.ts

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

Loading…
Cancel
Save