Skip to content

Commit 576631b

Browse files
committed
fix(lib): correct wrong package configs
1 parent 78f783e commit 576631b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,22 @@
3939
],
4040
"exports": {
4141
".": {
42-
"require": "./dist/index.js",
43-
"import": "./dist/index.mjs"
42+
"types": "./dist/index.d.ts",
43+
"require": "./dist/index.cjs",
44+
"import": "./dist/index.js"
4445
}
4546
},
46-
"main": "./dist/index.js",
47-
"module": "./dist/index.mjs",
47+
"main": "./dist/index.cjs",
48+
"module": "./dist/index.js",
4849
"types": "./dist/index.d.ts",
4950
"files": [
50-
"dist/**/*"
51+
"dist"
5152
],
5253
"scripts": {
5354
"prepare": "husky install",
5455
"lint": "eslint . --ext .ts --ignore-path .gitignore src",
5556
"lint:fix": "eslint --ext .ts --ignore-path .gitignore --fix src",
56-
"build": "tsup lib/index.ts --dts --format cjs,esm",
57+
"build": "tsup lib/index.ts --dts --format cjs,esm --clean",
5758
"build:example": "pnpm run build && vue-tsc --noEmit && vite build",
5859
"dev": "pnpm run build -- --watch && vite",
5960
"preview": "vite preview",

0 commit comments

Comments
 (0)