-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
110 lines (110 loc) · 3.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "template-name",
"version": "0.0.0",
"description": "本项目是一个能够同时兼容 vue2/vue3 的组件库的模板。",
"keywords": [],
"license": "MIT",
"author": "Chengjie Huang <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/KaygNas/vue-demi-lib-template.git"
},
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
"./components": {
"import": "./lib/components/index.js",
"require": "./lib/components/index.cjs",
"types": "./lib/components/index.d.ts"
},
"./hooks": {
"import": "./lib/hooks/index.js",
"require": "./lib/hooks/index.cjs",
"types": "./lib/hooks/index.d.ts"
},
".": {
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
},
"./*": "./*"
},
"files": [
"lib",
"scripts",
"bin"
],
"sideEffects": [
"./lib/**/components/**/*.vue.js"
],
"bin": {
"lib-switch-version": "./bin/lib-switch-version.js"
},
"homepage": "https://github.com/KaygNas/vue-demi-lib-template",
"peerDependencies": {
"@vue/composition-api": "^1.1.0",
"vue": "^2.6.0 || ^3.2.0"
},
"peerDependenciesMeta": {
"vue": {
"optional": true
},
"@vue/composition-api": {
"optional": true
}
},
"dependencies": {
"rollup-plugin-styles": "^4.0.0",
"vue-demi": "^0.12.5",
"vue-runtime-helpers": "^1.1.2"
},
"scripts": {
"postinstall": "node ./scripts/postinstall",
"dev": "vitepress dev src",
"prebuild": "rimraf lib",
"build": "npm run build:vue2 && npm run build:vue3",
"build:common": "rollup -c",
"build:dts2": "vue-tsc --project tsconfig.production-vue2.json --outDir lib/vue2",
"build:dts3": "vue-tsc --project tsconfig.production-vue3.json --outDir lib/vue3",
"build:vue2": "npm run switch:vue2 && npm run build:dts2 && npm run build:common",
"build:vue3": "npm run switch:vue3 && npm run build:dts3 && npm run build:common",
"switch:vue2": "vue-demi-switch 2 vue2",
"switch:vue3": "vue-demi-switch 3 vue3",
"docs:build": "vitepress build src",
"docs:serve": "vitepress serve src",
"lint": "eslint . --fix",
"test": "vitest",
"fix": "vue-demi-fix"
},
"devDependencies": {
"@antfu/eslint-config": "^0.19.1",
"@rollup/plugin-alias": "^3.1.9",
"@types/fs-extra": "^9.0.13",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.23",
"@vue/composition-api": "^1.6.2",
"@vue/test-utils": "^2.0.0-rc.18",
"ant-design-vue": "^3.2.7",
"esbuild-register": "^3.3.2",
"escape-html": "^1.0.3",
"eslint": "^8.12.0",
"fs-extra": "^10.0.1",
"jsdom": "^19.0.0",
"less": "^4.1.2",
"rimraf": "^3.0.2",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-vue-demi": "0.0.8",
"typescript": "^4.6.4",
"vite": "^2.9.0",
"vitepress": "^0.22.3",
"vitest": "^0.8.1",
"vue": "^3.2.36",
"vue-tsc": "^0.33.9",
"vue2": "npm:vue@^2.6.14",
"vue3": "npm:vue@^3.2.36"
},
"eslintConfig": {
"extends": "@antfu"
}
}