package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "v-code-diff",
  3. "type": "module",
  4. "version": "1.12.0",
  5. "description": "template component for vue-demi, can dev and build",
  6. "license": "MIT",
  7. "exports": {
  8. ".": {
  9. "types": "./types/index.d.ts",
  10. "import": "./dist/index.es.js",
  11. "require": "./dist/index.cjs.js"
  12. }
  13. },
  14. "main": "dist/index.cjs",
  15. "module": "dist/index.es.js",
  16. "types": "./types/index.d.ts",
  17. "files": [
  18. "dist",
  19. "scripts",
  20. "src",
  21. "types"
  22. ],
  23. "scripts": {
  24. "build": "npm run clean && run-s build:**",
  25. "build:2": "vue-demi-switch 2 vue2 && pnpm --filter vue2-playground build",
  26. "build:2:umd": "vue-demi-switch 2 vue2 && format=umd pnpm --filter vue2-playground build",
  27. "build:2.7": "vue-demi-switch 2.7 vue2 && pnpm --filter vue2.7-playground build",
  28. "build:2.7:umd": "vue-demi-switch 2.7 vue2 && format=umd pnpm --filter vue2.7-playground build",
  29. "build:3": "vue-demi-switch 3 vue3 && pnpm --filter vue3-playground build",
  30. "build:3:umd": "vue-demi-switch 3 vue3 && format=umd pnpm --filter vue3-playground build",
  31. "clean": "rimraf ./dist",
  32. "deploy:demo": "pnpm --filter demo gh-pages",
  33. "dev:2": "vue-demi-switch 2 vue2 && pnpm --filter vue2-playground dev",
  34. "dev:2.7": "vue-demi-switch 2.7 vue2 && pnpm --filter vue2.7-playground dev",
  35. "dev:3": "vue-demi-switch 3 vue3 && pnpm --filter vue3-playground dev",
  36. "dev:demo": "vue-demi-switch 3 vue3 && pnpm --filter demo dev",
  37. "lint": "eslint .",
  38. "lint:fix": "eslint . --ext .vue,.js,.jsx,.ts,.tsx,json --fix --ignore-path .gitignore",
  39. "postinstall": "node scripts/postinstall.cjs",
  40. "prepublishOnly": "npm run build",
  41. "release": "bumpp --commit --no-push --tag && npm publish"
  42. },
  43. "peerDependencies": {
  44. "@vue/composition-api": "^1.4.9",
  45. "vue": "^2.6.0 || >=3.0.0"
  46. },
  47. "peerDependenciesMeta": {
  48. "@vue/composition-api": {
  49. "optional": true
  50. }
  51. },
  52. "dependencies": {
  53. "diff": "^5.1.0",
  54. "diff-match-patch": "^1.0.5",
  55. "highlight.js": "^11.9.0",
  56. "vue-demi": "^0.14.6",
  57. "vue-i18n": "9"
  58. },
  59. "devDependencies": {
  60. "@antfu/eslint-config": "^2.4.5",
  61. "@types/diff": "^5.0.0",
  62. "@types/diff-match-patch": "^1.0.32",
  63. "@types/node": "^18.11.18",
  64. "@unocss/eslint-plugin": "^0.58.0",
  65. "@vueuse/core": "^10.7.0",
  66. "bumpp": "^8.2.1",
  67. "eslint": "^8.55.0",
  68. "npm-run-all": "^4.1.5",
  69. "rimraf": "^3.0.2",
  70. "sass": "^1.69.5",
  71. "typescript": "~4.7.4",
  72. "vite": "^4.5.1",
  73. "vite-plugin-css-injected-by-js": "^2.4.0",
  74. "vue": "^3.3.11",
  75. "vue-tsc": "^0.40.13",
  76. "vue2": "npm:vue@2",
  77. "vue3": "npm:vue@3"
  78. },
  79. "pnpm": {
  80. "packageExtensions": {
  81. "vue-template-compiler": {
  82. "peerDependencies": {
  83. "vue": "~2.6.14"
  84. }
  85. }
  86. }
  87. }
  88. }