package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "name": "vue-router",
  3. "version": "4.2.4",
  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. },
  31. "sideEffects": false,
  32. "funding": "https://github.com/sponsors/posva",
  33. "license": "MIT",
  34. "repository": {
  35. "type": "git",
  36. "url": "git+https://github.com/vuejs/router.git"
  37. },
  38. "bugs": {
  39. "url": "https://github.com/vuejs/router/issues"
  40. },
  41. "homepage": "https://github.com/vuejs/router#readme",
  42. "files": [
  43. "index.js",
  44. "dist/*.{js,cjs,mjs}",
  45. "dist/vue-router.d.ts",
  46. "vetur/tags.json",
  47. "vetur/attributes.json",
  48. "README.md"
  49. ],
  50. "peerDependencies": {
  51. "vue": "^3.2.0"
  52. },
  53. "vetur": {
  54. "tags": "vetur/tags.json",
  55. "attributes": "vetur/attributes.json"
  56. },
  57. "dependencies": {
  58. "@vue/devtools-api": "^6.5.0"
  59. },
  60. "devDependencies": {
  61. "@microsoft/api-extractor": "^7.36.0",
  62. "@rollup/plugin-alias": "^5.0.0",
  63. "@rollup/plugin-commonjs": "^25.0.0",
  64. "@rollup/plugin-node-resolve": "^15.0.2",
  65. "@rollup/plugin-replace": "^5.0.2",
  66. "@rollup/plugin-terser": "^0.4.3",
  67. "@sucrase/jest-plugin": "^3.0.0",
  68. "@types/jest": "^29.5.1",
  69. "@types/jsdom": "^21.1.1",
  70. "@types/nightwatch": "^2.3.23",
  71. "@vitejs/plugin-vue": "^4.2.3",
  72. "@vue/compiler-sfc": "^3.3.4",
  73. "@vue/server-renderer": "^3.3.4",
  74. "@vue/test-utils": "^2.3.2",
  75. "browserstack-local": "^1.5.2",
  76. "chromedriver": "^113.0.0",
  77. "connect-history-api-fallback": "^1.6.0",
  78. "conventional-changelog-cli": "^2.1.1",
  79. "dotenv": "^16.0.3",
  80. "faked-promise": "^2.2.2",
  81. "geckodriver": "^3.2.0",
  82. "jest": "^29.5.0",
  83. "jest-environment-jsdom": "^29.5.0",
  84. "jest-mock-warn": "^1.1.0",
  85. "nightwatch": "^2.6.21",
  86. "nightwatch-helpers": "^1.2.0",
  87. "rimraf": "^5.0.1",
  88. "rollup": "^3.26.1",
  89. "rollup-plugin-analyzer": "^4.0.0",
  90. "rollup-plugin-typescript2": "^0.35.0",
  91. "sucrase": "^3.32.0",
  92. "typescript": "~5.1.6",
  93. "vite": "^4.3.8",
  94. "vue": "^3.3.4"
  95. },
  96. "scripts": {
  97. "dev": "jest --watch",
  98. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
  99. "build": "rimraf dist && rollup -c rollup.config.mjs",
  100. "build:dts": "api-extractor run --local --verbose && tail -n +10 src/globalExtensions.ts >> dist/vue-router.d.ts",
  101. "build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.ts",
  102. "build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.mjs",
  103. "build:size": "pnpm run build && rollup -c size-checks/rollup.config.mjs",
  104. "dev:e2e": "vite --config e2e/vite.config.mjs",
  105. "test:types": "tsc --build tsconfig.json",
  106. "test:dts": "tsc -p ./test-dts/tsconfig.json",
  107. "test:unit": "jest --coverage",
  108. "test": "pnpm run test:types && pnpm run test:unit && pnpm run build && pnpm run build:dts && pnpm run test:e2e",
  109. "test:e2e": "pnpm run test:e2e:headless",
  110. "test:e2e:headless": "node e2e/runner.mjs --env chrome-headless",
  111. "test:e2e:native": "node e2e/runner.mjs --env chrome",
  112. "test:e2e:ci": "node e2e/runner.mjs --env chrome-headless --retries 2",
  113. "test:e2e:bs": "node e2e/runner.mjs --local -e android5 --tag browserstack",
  114. "test:e2e:bs-test": "node e2e/runner.mjs --local --env browserstack.local_chrome --tag browserstack"
  115. }
  116. }