Skip to content

Commit 54dc356

Browse files
committed
fix: update Vite configuration and package exports for improved build output
1 parent a234e99 commit 54dc356

File tree

3 files changed

+1091
-1175
lines changed

3 files changed

+1091
-1175
lines changed

package.json

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@
2525
],
2626
"exports": {
2727
".": {
28-
"types": "./dist/types/index.d.ts",
29-
"import": "./dist/es/index.js",
30-
"require": "./dist/lib/index.js"
28+
"types": "./dist/index.d.ts",
29+
"import": "./dist/index.js",
30+
"require": "./dist/index.cjs"
3131
},
3232
"./*": "./*",
33-
"./volar": "./dist/types/volar.d.ts",
34-
"./style.css": "./dist/es/style.css"
33+
"./style.css": "./dist/starter-lib-vue3.css"
3534
},
36-
"main": "dist/lib/index.js",
37-
"module": "dist/es/index.js",
38-
"unpkg": "dist/iife/index.global.js",
39-
"jsdelivr": "dist/iife/index.js",
40-
"types": "dist/types/index.d.ts",
35+
"main": "dist/index.cjs",
36+
"module": "dist/index.js",
37+
"unpkg": "dist/index.global.js",
38+
"jsdelivr": "dist/index.global.js",
39+
"types": "dist/index.d.ts",
4140
"files": [
4241
"dist"
4342
],
@@ -49,7 +48,7 @@
4948
"preinstall": "npx only-allow pnpm",
5049
"prepare": "simple-git-hooks",
5150
"dev": "vite build --watch",
52-
"build": "vite build",
51+
"build": "pnpm clean && vite build",
5352
"docs:dev": "vitepress dev docs",
5453
"docs:build": "vitepress build docs",
5554
"docs:preview": "vitepress preview docs",
@@ -64,26 +63,25 @@
6463
"vue": "^3.2.0"
6564
},
6665
"devDependencies": {
67-
"@antfu/eslint-config": "^3.11.0",
66+
"@antfu/eslint-config": "^3.12.1",
6867
"@types/jsdom": "^21.1.7",
69-
"@types/node": "^18.19.66",
68+
"@types/node": "^18.19.68",
7069
"@vitejs/plugin-vue": "^5.2.1",
7170
"@vitejs/plugin-vue-jsx": "^4.1.1",
7271
"@vue/test-utils": "^2.4.6",
73-
"bumpp": "^9.8.1",
74-
"eslint": "^9.15.0",
72+
"bumpp": "^9.9.2",
73+
"eslint": "^9.17.0",
7574
"jsdom": "^24.1.3",
76-
"lint-staged": "^15.2.10",
77-
"npm-run-all2": "^6.2.6",
75+
"lint-staged": "^15.2.11",
7876
"rimraf": "^6.0.1",
7977
"simple-git-hooks": "^2.11.1",
80-
"typescript": "^5.6.2",
81-
"vite": "^6.0.1",
82-
"vite-plugin-dts": "^4.3.0",
78+
"typescript": "^5.7.2",
79+
"vite": "^6.0.5",
80+
"vite-plugin-dts": "^4.4.0",
8381
"vitepress": "^1.5.0",
84-
"vitest": "^2.1.6",
82+
"vitest": "^2.1.8",
8583
"vue": "^3.5.13",
86-
"vue-tsc": "^2.0.29"
84+
"vue-tsc": "^2.2.0"
8785
},
8886
"simple-git-hooks": {
8987
"pre-commit": "pnpm lint-staged"

0 commit comments

Comments
 (0)