package.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "name": "vue-router",
  3. "version": "4.4.3",
  4. "main": "index.js",
  5. "unpkg": "dist/vue-router.global.js",
  6. "jsdelivr": "dist/vue-router.global.js",
  7. "module": "dist/vue-router.mjs",
  8. "types": "dist/vue-router.d.ts",
  9. "exports": {
  10. ".": {
  11. "types": "./dist/vue-router.d.ts",
  12. "node": {
  13. "import": {
  14. "production": "./dist/vue-router.node.mjs",
  15. "development": "./dist/vue-router.node.mjs",
  16. "default": "./dist/vue-router.node.mjs"
  17. },
  18. "require": {
  19. "production": "./dist/vue-router.prod.cjs",
  20. "development": "./dist/vue-router.cjs",
  21. "default": "./index.js"
  22. }
  23. },
  24. "import": "./dist/vue-router.mjs",
  25. "require": "./index.js"
  26. },
  27. "./dist/*": "./dist/*",
  28. "./vetur/*": "./vetur/*",
  29. "./package.json": "./package.json",
  30. "./auto-routes": {
  31. "types": "./vue-router-auto-routes.d.ts",
  32. "node": {
  33. "import": {
  34. "production": "./dist/vue-router.node.mjs",
  35. "development": "./dist/vue-router.node.mjs",
  36. "default": "./dist/vue-router.node.mjs"
  37. },
  38. "require": {
  39. "production": "./dist/vue-router.prod.cjs",
  40. "development": "./dist/vue-router.cjs",
  41. "default": "./index.js"
  42. }
  43. },
  44. "import": "./dist/vue-router.mjs",
  45. "require": "./index.js"
  46. },
  47. "./auto": {
  48. "types": "./vue-router-auto.d.ts",
  49. "node": {
  50. "import": {
  51. "production": "./dist/vue-router.node.mjs",
  52. "development": "./dist/vue-router.node.mjs",
  53. "default": "./dist/vue-router.node.mjs"
  54. },
  55. "require": {
  56. "production": "./dist/vue-router.prod.cjs",
  57. "development": "./dist/vue-router.cjs",
  58. "default": "./index.js"
  59. }
  60. },
  61. "import": "./dist/vue-router.mjs",
  62. "require": "./index.js"
  63. }
  64. },
  65. "sideEffects": false,
  66. "author": {
  67. "name": "Eduardo San Martin Morote",
  68. "email": "posva13@gmail.com"
  69. },
  70. "funding": "https://github.com/sponsors/posva",
  71. "license": "MIT",
  72. "repository": {
  73. "type": "git",
  74. "url": "git+https://github.com/vuejs/router.git"
  75. },
  76. "bugs": {
  77. "url": "https://github.com/vuejs/router/issues"
  78. },
  79. "homepage": "https://github.com/vuejs/router#readme",
  80. "files": [
  81. "index.js",
  82. "dist/*.{js,cjs,mjs}",
  83. "dist/vue-router.d.ts",
  84. "vue-router-auto.d.ts",
  85. "vue-router-auto-routes.d.ts",
  86. "vetur/tags.json",
  87. "vetur/attributes.json",
  88. "README.md"
  89. ],
  90. "peerDependencies": {
  91. "vue": "^3.2.0"
  92. },
  93. "vetur": {
  94. "tags": "vetur/tags.json",
  95. "attributes": "vetur/attributes.json"
  96. },
  97. "dependencies": {
  98. "@vue/devtools-api": "^6.6.3"
  99. },
  100. "devDependencies": {
  101. "@microsoft/api-extractor": "^7.40.1",
  102. "@rollup/plugin-alias": "^5.1.0",
  103. "@rollup/plugin-commonjs": "^25.0.7",
  104. "@rollup/plugin-node-resolve": "^15.2.3",
  105. "@rollup/plugin-replace": "^5.0.5",
  106. "@rollup/plugin-terser": "^0.4.4",
  107. "@types/jsdom": "^21.1.7",
  108. "@types/nightwatch": "^2.3.31",
  109. "@vitejs/plugin-vue": "^5.0.5",
  110. "@vitest/coverage-v8": "^1.6.0",
  111. "@vitest/ui": "^1.6.0",
  112. "@vue/compiler-sfc": "^3.4.29",
  113. "@vue/server-renderer": "^3.4.29",
  114. "@vue/test-utils": "^2.4.6",
  115. "browserstack-local": "^1.5.5",
  116. "chromedriver": "^121.0.2",
  117. "connect-history-api-fallback": "^1.6.0",
  118. "conventional-changelog-cli": "^2.1.1",
  119. "dotenv": "^16.4.5",
  120. "faked-promise": "^2.2.2",
  121. "geckodriver": "^3.2.0",
  122. "happy-dom": "^14.12.3",
  123. "nightwatch": "^2.6.22",
  124. "nightwatch-helpers": "^1.2.0",
  125. "rimraf": "^5.0.7",
  126. "rollup": "^3.29.4",
  127. "rollup-plugin-analyzer": "^4.0.0",
  128. "rollup-plugin-typescript2": "^0.36.0",
  129. "typescript": "~5.3.3",
  130. "vite": "^5.3.1",
  131. "vitest": "^1.6.0",
  132. "vue": "^3.4.29"
  133. },
  134. "scripts": {
  135. "dev": "vitest --ui",
  136. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
  137. "build": "rimraf dist && rollup -c rollup.config.mjs",
  138. "build:dts": "api-extractor run --local --verbose && tail -n +10 src/globalExtensions.ts >> dist/vue-router.d.ts",
  139. "build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.ts",
  140. "build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.mjs",
  141. "build:size": "pnpm run build && rollup -c size-checks/rollup.config.mjs",
  142. "dev:e2e": "vite --config e2e/vite.config.mjs",
  143. "test:types": "tsc --build tsconfig.json",
  144. "test:unit": "vitest --coverage run",
  145. "test": "pnpm run build && pnpm run build:dts && pnpm run test:types && pnpm run test:unit && pnpm run test:e2e",
  146. "test:e2e": "pnpm run test:e2e:headless",
  147. "test:e2e:headless": "node e2e/runner.mjs --env chrome-headless",
  148. "test:e2e:native": "node e2e/runner.mjs --env chrome",
  149. "test:e2e:ci": "node e2e/runner.mjs --env chrome-headless --retries 2",
  150. "test:e2e:bs": "node e2e/runner.mjs --local -e android5 --tag browserstack",
  151. "test:e2e:bs-test": "node e2e/runner.mjs --local --env browserstack.local_chrome --tag browserstack"
  152. }
  153. }