2
0

package.json 4.4 KB

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