|
1 | 1 | { |
2 | | - "name": "@vue-spark/work-use", |
| 2 | + "name": "@vue-spark/compose-kit", |
3 | 3 | "type": "module", |
4 | 4 | "version": "0.0.0", |
5 | 5 | "packageManager": "pnpm@10.11.0", |
6 | | - "description": "一个为 Vue 工作场景设计的高效 use 库。", |
| 6 | + "description": "面向复杂业务的组合式 Vue 工具包:可复用的 composables、SFC 组件与通用工具,显著提升开发效率。", |
7 | 7 | "author": "leihaohao <https://github.com/l246804>", |
8 | 8 | "license": "MIT", |
9 | | - "homepage": "https://github.com/vue-spark/work-use#readme", |
| 9 | + "homepage": "https://github.com/vue-spark/compose-kit#readme", |
10 | 10 | "repository": { |
11 | 11 | "type": "git", |
12 | | - "url": "git+https://github.com/vue-spark/work-use.git" |
| 12 | + "url": "git+https://github.com/vue-spark/compose-kit.git" |
13 | 13 | }, |
14 | 14 | "bugs": { |
15 | | - "url": "https://github.com/vue-spark/work-use/issues" |
| 15 | + "url": "https://github.com/vue-spark/compose-kit/issues" |
16 | 16 | }, |
17 | 17 | "keywords": [ |
18 | 18 | "web", |
19 | 19 | "function", |
20 | 20 | "use", |
21 | 21 | "hook", |
22 | | - "composable" |
| 22 | + "composable", |
| 23 | + "element-plus" |
23 | 24 | ], |
| 25 | + "sideEffects": false, |
24 | 26 | "exports": { |
25 | | - ".": "./dist/index.js", |
| 27 | + ".": "./dist/shared/index.js", |
| 28 | + "./element-plus": "./dist/element-plus/index.js", |
26 | 29 | "./package.json": "./package.json" |
27 | 30 | }, |
28 | | - "main": "./dist/index.js", |
29 | | - "module": "./dist/index.js", |
30 | | - "types": "./dist/index.d.ts", |
| 31 | + "main": "./dist/shared/index.js", |
| 32 | + "module": "./dist/shared/index.js", |
| 33 | + "types": "./dist/shared/index.d.ts", |
31 | 34 | "files": [ |
32 | 35 | "dist" |
33 | 36 | ], |
|
38 | 41 | "scripts": { |
39 | 42 | "dev": "tsdown --watch", |
40 | 43 | "build": "tsdown", |
| 44 | + "play": "vite", |
41 | 45 | "test": "vitest", |
42 | 46 | "typecheck": "tsc --noEmit", |
43 | 47 | "format": "prettier . --write --cache --cache-location ./node_modules/.cache/.prettier-cache", |
|
47 | 51 | "prepublishOnly": "pnpm run build", |
48 | 52 | "prepare": "simple-git-hooks" |
49 | 53 | }, |
| 54 | + "peerDependencies": { |
| 55 | + "element-plus": "^2.11.5", |
| 56 | + "vue": "^3.5.22" |
| 57 | + }, |
| 58 | + "peerDependenciesMeta": { |
| 59 | + "element-plus": { |
| 60 | + "optional": true |
| 61 | + } |
| 62 | + }, |
| 63 | + "dependencies": { |
| 64 | + "vue-component-type-helpers": "^3.1.1" |
| 65 | + }, |
50 | 66 | "devDependencies": { |
51 | 67 | "@antfu/eslint-config": "^6.0.0", |
| 68 | + "@antfu/utils": "^9.3.0", |
52 | 69 | "@sxzz/prettier-config": "^2.2.3", |
53 | 70 | "@tsconfig/node22": "^22.0.2", |
54 | 71 | "@types/node": "^22.16.0", |
| 72 | + "@vitejs/plugin-vue": "^6.0.1", |
| 73 | + "@vitejs/plugin-vue-jsx": "^5.1.1", |
55 | 74 | "@vue/tsconfig": "^0.8.1", |
| 75 | + "@vueuse/core": "^14.0.0", |
56 | 76 | "bumpp": "^10.2.0", |
| 77 | + "element-plus": "^2.11.5", |
57 | 78 | "eslint": "^9.30.1", |
58 | 79 | "eslint-plugin-format": "^1.0.1", |
59 | 80 | "happy-dom": "^20.0.7", |
|
62 | 83 | "simple-git-hooks": "^2.13.0", |
63 | 84 | "tsdown": "^0.15.4", |
64 | 85 | "tsx": "^4.20.3", |
| 86 | + "type-fest": "^5.1.0", |
65 | 87 | "typescript": "^5.8.3", |
66 | | - "vitest": "^3.2.4" |
| 88 | + "unplugin-raw": "^0.6.3", |
| 89 | + "unplugin-vue": "^7.0.3", |
| 90 | + "unplugin-vue-jsx": "^0.8.1", |
| 91 | + "vite": "npm:rolldown-vite@^7.1.19", |
| 92 | + "vitest": "^3.2.4", |
| 93 | + "vue": "^3.5.22", |
| 94 | + "vue-tsc": "^3.1.1" |
67 | 95 | }, |
68 | 96 | "simple-git-hooks": { |
69 | 97 | "pre-commit": "npx lint-staged" |
|
0 commit comments