-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathpackage.json
More file actions
97 lines (97 loc) · 3.26 KB
/
Copy pathpackage.json
File metadata and controls
97 lines (97 loc) · 3.26 KB
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
{
"name": "v-code-diff",
"type": "module",
"version": "1.16.0",
"packageManager": "pnpm@11.2.2",
"description": "A code diff viewer for Vue 2.6, Vue 2.7, and Vue 3",
"license": "MIT",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.cjs"
},
"./vue2": {
"types": "./types/index.d.ts",
"import": "./dist/v2/index.es.js",
"require": "./dist/v2/index.cjs"
},
"./vue2.7": {
"types": "./types/index.d.ts",
"import": "./dist/v2.7/index.es.js",
"require": "./dist/v2.7/index.cjs"
},
"./vue3": {
"types": "./types/index.d.ts",
"import": "./dist/v3/index.es.js",
"require": "./dist/v3/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.es.js",
"types": "./types/index.d.ts",
"files": [
"dist",
"scripts",
"src",
"types"
],
"scripts": {
"benchmark": "pnpm build:3 && vitest bench --run && node --expose-gc benchmarks/render.mjs",
"build": "npm run clean && run-s build:**",
"build:2": "vue-demi-switch 2 vue2 && pnpm --filter vue2-playground build",
"build:2:umd": "vue-demi-switch 2 vue2 && format=umd pnpm --filter vue2-playground build",
"build:2.7": "vue-demi-switch 2.7 vue2 && pnpm --filter vue2.7-playground build",
"build:2.7:umd": "vue-demi-switch 2.7 vue2 && format=umd pnpm --filter vue2.7-playground build",
"build:3": "vue-demi-switch 3 vue3 && pnpm --filter vue3-playground build",
"build:3:umd": "vue-demi-switch 3 vue3 && format=umd pnpm --filter vue3-playground build",
"clean": "rimraf ./dist",
"deploy:demo": "pnpm --filter demo gh-pages",
"dev:2": "vue-demi-switch 2 vue2 && pnpm --filter vue2-playground dev",
"dev:2.7": "vue-demi-switch 2.7 vue2 && pnpm --filter vue2.7-playground dev",
"dev:3": "vue-demi-switch 3 vue3 && pnpm --filter vue3-playground dev",
"dev:demo": "vue-demi-switch 3 vue3 && pnpm --filter demo dev",
"lint": "eslint .",
"lint:fix": "eslint . --ext .vue,.js,.jsx,.ts,.tsx,json --fix --ignore-path .gitignore",
"postinstall": "node scripts/postinstall.cjs",
"prepublishOnly": "npm run build",
"release": "bumpp --commit --no-push --tag && npm publish",
"test": "run-s test:unit test:types",
"test:types": "tsc --noEmit --skipLibCheck --module ESNext --moduleResolution node --target ES2020 tests/types.test-d.ts",
"test:unit": "vitest run"
},
"peerDependencies": {
"@vue/composition-api": "^1.4.9",
"vue": "^2.6.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"dependencies": {
"diff": "^5.2.2",
"diff-match-patch": "^1.0.5",
"highlight.js": "^11.12.0",
"vue-demi": "^0.14.10"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@types/diff": "^5.2.3",
"@types/diff-match-patch": "^1.0.36",
"@types/node": "^22.19.15",
"bumpp": "^8.2.1",
"eslint": "^8.57.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"sass": "^1.103.1",
"tsx": "^4.23.12",
"typescript": "~5.9.3",
"vite": "^6.4.3",
"vite-plugin-css-injected-by-js": "^2.4.0",
"vitest": "^4.1.11",
"vue": "^3.5.41",
"vue2": "npm:vue@^2.7.16",
"vue3": "npm:vue@^3.5.41"
}
}