package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "name": "vue",
  3. "version": "2.7.16",
  4. "packageManager": "pnpm@8.9.2",
  5. "description": "Reactive, component-oriented view layer for modern web interfaces.",
  6. "main": "dist/vue.runtime.common.js",
  7. "module": "dist/vue.runtime.esm.js",
  8. "unpkg": "dist/vue.js",
  9. "jsdelivr": "dist/vue.js",
  10. "typings": "types/index.d.ts",
  11. "files": [
  12. "src",
  13. "dist/*.js",
  14. "dist/*.mjs",
  15. "types/*.d.ts",
  16. "compiler-sfc",
  17. "packages/compiler-sfc"
  18. ],
  19. "exports": {
  20. ".": {
  21. "types": "./types/index.d.ts",
  22. "import": {
  23. "node": "./dist/vue.runtime.mjs",
  24. "default": "./dist/vue.runtime.esm.js"
  25. },
  26. "require": "./dist/vue.runtime.common.js"
  27. },
  28. "./compiler-sfc": {
  29. "types": "./compiler-sfc/index.d.ts",
  30. "import": "./compiler-sfc/index.mjs",
  31. "require": "./compiler-sfc/index.js"
  32. },
  33. "./dist/*": "./dist/*",
  34. "./types/*": [
  35. "./types/*.d.ts",
  36. "./types/*"
  37. ],
  38. "./package.json": "./package.json"
  39. },
  40. "sideEffects": false,
  41. "gitHooks": {
  42. "pre-commit": "lint-staged",
  43. "commit-msg": "node scripts/verify-commit-msg.js"
  44. },
  45. "lint-staged": {
  46. "*.js": [
  47. "prettier --write"
  48. ],
  49. "*.ts": [
  50. "prettier --parser=typescript --write"
  51. ]
  52. },
  53. "repository": {
  54. "type": "git",
  55. "url": "git+https://github.com/vuejs/vue.git"
  56. },
  57. "keywords": [
  58. "vue"
  59. ],
  60. "author": "Evan You",
  61. "license": "MIT",
  62. "bugs": {
  63. "url": "https://github.com/vuejs/vue/issues"
  64. },
  65. "homepage": "https://github.com/vuejs/vue#readme",
  66. "dependencies": {
  67. "csstype": "^3.1.0",
  68. "@vue/compiler-sfc": "2.7.16"
  69. },
  70. "devDependencies": {
  71. "@babel/parser": "^7.23.5",
  72. "@microsoft/api-extractor": "^7.25.0",
  73. "@rollup/plugin-alias": "^3.1.9",
  74. "@rollup/plugin-commonjs": "^22.0.0",
  75. "@rollup/plugin-node-resolve": "^13.3.0",
  76. "@rollup/plugin-replace": "^4.0.0",
  77. "@types/he": "^1.1.2",
  78. "@types/node": "^20.10.3",
  79. "chalk": "^4.1.2",
  80. "conventional-changelog-cli": "^2.2.2",
  81. "cross-spawn": "^7.0.3",
  82. "enquirer": "^2.3.6",
  83. "esbuild": "^0.19.8",
  84. "execa": "^4.1.0",
  85. "he": "^1.2.0",
  86. "jasmine-core": "^4.2.0",
  87. "jsdom": "^19.0.0",
  88. "karma": "^6.3.20",
  89. "karma-chrome-launcher": "^3.1.1",
  90. "karma-cli": "^2.0.0",
  91. "karma-esbuild": "^2.2.5",
  92. "karma-jasmine": "^5.0.1",
  93. "lint-staged": "^12.5.0",
  94. "lodash": "^4.17.21",
  95. "marked": "^4.0.16",
  96. "minimist": "^1.2.6",
  97. "postcss": "^8.4.14",
  98. "prettier": "^2.6.2",
  99. "puppeteer": "^14.3.0",
  100. "rimraf": "^3.0.2",
  101. "rollup": "^2.79.1",
  102. "rollup-plugin-typescript2": "^0.32.0",
  103. "semver": "^7.3.7",
  104. "shelljs": "^0.8.5",
  105. "terser": "^5.14.0",
  106. "todomvc-app-css": "^2.4.2",
  107. "ts-node": "^10.8.1",
  108. "tslib": "^2.4.0",
  109. "typescript": "^4.8.4",
  110. "vitest": "^1.0.4",
  111. "yorkie": "^2.0.0"
  112. },
  113. "scripts": {
  114. "dev": "rollup -w -c scripts/config.js --environment TARGET:full-dev",
  115. "dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:runtime-cjs-dev",
  116. "dev:esm": "rollup -w -c scripts/config.js --environment TARGET:runtime-esm",
  117. "dev:ssr": "rollup -w -c scripts/config.js --environment TARGET:server-renderer",
  118. "dev:compiler": "rollup -w -c scripts/config.js --environment TARGET:compiler ",
  119. "build": "node scripts/build.js",
  120. "build:ssr": "npm run build -- runtime-cjs,server-renderer",
  121. "build:types": "rimraf temp && tsc --declaration --emitDeclarationOnly --outDir temp && api-extractor run && api-extractor run -c packages/compiler-sfc/api-extractor.json",
  122. "test": "npm run ts-check && npm run test:types && npm run test:unit && npm run test:e2e && npm run test:ssr && npm run test:sfc",
  123. "test:unit": "vitest run test/unit",
  124. "test:ssr": "npm run build:ssr && vitest run server-renderer",
  125. "test:sfc": "vitest run compiler-sfc",
  126. "test:e2e": "npm run build -- full-prod,server-renderer-basic && vitest run test/e2e",
  127. "test:transition": "karma start test/transition/karma.conf.js",
  128. "test:types": "npm run build:types && tsc -p ./types/tsconfig.json",
  129. "format": "prettier --write --parser typescript \"(src|test|packages|types)/**/*.ts\"",
  130. "ts-check": "tsc -p tsconfig.json --noEmit",
  131. "ts-check:test": "tsc -p test/tsconfig.json --noEmit",
  132. "bench:ssr": "npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js",
  133. "release": "node scripts/release.js",
  134. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
  135. }
  136. }