package.json 4.4 KB

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