Skip to content

Commit f8eae37

Browse files
author
leihaohao
committed
build: 更新 package.json 配置以支持新插件系统
- 移除全部插件注册快捷方式,仅支持按需导入需要注册的插件 - 替换 "vue" 和 "vue-router" 依赖为 "vue-router-plugin-system" - 单一插件导入路径简化
1 parent be228c8 commit f8eae37

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,13 @@
2222
"state"
2323
],
2424
"exports": {
25-
".": {
26-
"types": "./dist/index.d.ts",
27-
"import": "./dist/index.js"
28-
},
29-
"./plugins/*": {
30-
"types": "./dist/plugins/*.d.ts",
31-
"import": "./dist/plugins/*.js"
32-
},
33-
"./*": "./*"
25+
"./*": "./dist/*.js",
26+
"./package.json": "./package.json"
3427
},
3528
"publishConfig": {
3629
"access": "public",
3730
"registry": "https://registry.npmjs.org/"
3831
},
39-
"module": "./dist/index.js",
40-
"types": "./dist/index.d.ts",
4132
"files": [
4233
"CHANGELOG.md",
4334
"dist"
@@ -59,8 +50,7 @@
5950
"prepare": "simple-git-hooks"
6051
},
6152
"peerDependencies": {
62-
"vue": "^3",
63-
"vue-router": "^4"
53+
"vue-router-plugin-system": "^1.0.0"
6454
},
6555
"devDependencies": {
6656
"@antfu/eslint-config": "^4.13.2",

0 commit comments

Comments
 (0)