package.json 4.4 KB

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