版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

205 lines
4.8 KiB

  1. {
  2. "name": "vitest",
  3. "type": "module",
  4. "version": "0.29.8",
  5. "description": "A blazing fast unit test framework powered by Vite",
  6. "author": "Anthony Fu <anthonyfu117@hotmail.com>",
  7. "license": "MIT",
  8. "funding": "https://github.com/sponsors/antfu",
  9. "homepage": "https://github.com/vitest-dev/vitest#readme",
  10. "repository": {
  11. "type": "git",
  12. "url": "git+https://github.com/vitest-dev/vitest.git",
  13. "directory": "packages/vitest"
  14. },
  15. "bugs": {
  16. "url": "https://github.com/vitest-dev/vitest/issues"
  17. },
  18. "keywords": [
  19. "vite",
  20. "vite-node",
  21. "vitest",
  22. "test",
  23. "jest"
  24. ],
  25. "sideEffects": false,
  26. "exports": {
  27. ".": {
  28. "require": {
  29. "types": "./index.d.cts",
  30. "default": "./index.cjs"
  31. },
  32. "import": {
  33. "types": "./dist/index.d.ts",
  34. "default": "./dist/index.js"
  35. }
  36. },
  37. "./*": "./*",
  38. "./globals": {
  39. "types": "./globals.d.ts"
  40. },
  41. "./importMeta": {
  42. "types": "./importMeta.d.ts"
  43. },
  44. "./node": {
  45. "types": "./dist/node.d.ts",
  46. "import": "./dist/node.js"
  47. },
  48. "./browser": {
  49. "types": "./dist/browser.d.ts",
  50. "import": "./dist/browser.js"
  51. },
  52. "./runners": {
  53. "types": "./dist/runners.d.ts",
  54. "import": "./dist/runners.js"
  55. },
  56. "./suite": {
  57. "types": "./dist/suite.d.ts",
  58. "import": "./dist/suite.js"
  59. },
  60. "./environments": {
  61. "types": "./dist/environments.d.ts",
  62. "import": "./dist/environments.js"
  63. },
  64. "./utils": {
  65. "types": "./dist/utils.d.ts",
  66. "import": "./dist/utils.js"
  67. },
  68. "./config": {
  69. "types": "./config.d.ts",
  70. "require": "./dist/config.cjs",
  71. "import": "./dist/config.js"
  72. },
  73. "./coverage": {
  74. "types": "./coverage.d.ts",
  75. "import": "./dist/coverage.js"
  76. }
  77. },
  78. "main": "./dist/index.js",
  79. "module": "./dist/index.js",
  80. "types": "./dist/index.d.ts",
  81. "bin": {
  82. "vitest": "./vitest.mjs"
  83. },
  84. "files": [
  85. "dist",
  86. "bin",
  87. "*.d.ts",
  88. "*.d.cts",
  89. "*.mjs",
  90. "*.cjs"
  91. ],
  92. "engines": {
  93. "node": ">=v14.16.0"
  94. },
  95. "peerDependencies": {
  96. "@edge-runtime/vm": "*",
  97. "@vitest/browser": "*",
  98. "@vitest/ui": "*",
  99. "happy-dom": "*",
  100. "jsdom": "*",
  101. "playwright": "*",
  102. "safaridriver": "*",
  103. "webdriverio": "*"
  104. },
  105. "peerDependenciesMeta": {
  106. "@vitest/ui": {
  107. "optional": true
  108. },
  109. "@vitest/browser": {
  110. "optional": true
  111. },
  112. "happy-dom": {
  113. "optional": true
  114. },
  115. "jsdom": {
  116. "optional": true
  117. },
  118. "webdriverio": {
  119. "optional": true
  120. },
  121. "safaridriver": {
  122. "optional": true
  123. },
  124. "playwright": {
  125. "optional": true
  126. },
  127. "@edge-runtime/vm": {
  128. "optional": true
  129. }
  130. },
  131. "dependencies": {
  132. "@types/chai": "^4.3.4",
  133. "@types/chai-subset": "^1.3.3",
  134. "@types/node": "*",
  135. "acorn": "^8.8.1",
  136. "acorn-walk": "^8.2.0",
  137. "cac": "^6.7.14",
  138. "chai": "^4.3.7",
  139. "debug": "^4.3.4",
  140. "local-pkg": "^0.4.2",
  141. "pathe": "^1.1.0",
  142. "picocolors": "^1.0.0",
  143. "source-map": "^0.6.1",
  144. "std-env": "^3.3.1",
  145. "strip-literal": "^1.0.0",
  146. "tinybench": "^2.3.1",
  147. "tinypool": "^0.4.0",
  148. "tinyspy": "^1.0.2",
  149. "vite": "^3.0.0 || ^4.0.0",
  150. "why-is-node-running": "^2.2.2",
  151. "@vitest/runner": "0.29.8",
  152. "vite-node": "0.29.8",
  153. "@vitest/expect": "0.29.8",
  154. "@vitest/spy": "0.29.8",
  155. "@vitest/utils": "0.29.8"
  156. },
  157. "devDependencies": {
  158. "@ampproject/remapping": "^2.2.0",
  159. "@antfu/install-pkg": "^0.1.1",
  160. "@edge-runtime/vm": "2.0.2",
  161. "@sinonjs/fake-timers": "^10.0.2",
  162. "@types/diff": "^5.0.2",
  163. "@types/istanbul-lib-coverage": "^2.0.4",
  164. "@types/istanbul-reports": "^3.0.1",
  165. "@types/jsdom": "^21.1.0",
  166. "@types/micromatch": "^4.0.2",
  167. "@types/natural-compare": "^1.4.1",
  168. "@types/prompts": "^2.4.2",
  169. "@types/sinonjs__fake-timers": "^8.1.2",
  170. "birpc": "^0.2.3",
  171. "chai-subset": "^1.6.0",
  172. "cli-truncate": "^3.1.0",
  173. "diff": "^5.1.0",
  174. "event-target-polyfill": "^0.0.3",
  175. "execa": "^7.0.0",
  176. "expect-type": "^0.15.0",
  177. "fast-glob": "^3.2.12",
  178. "find-up": "^6.3.0",
  179. "flatted": "^3.2.7",
  180. "get-tsconfig": "^4.3.0",
  181. "happy-dom": "^8.3.2",
  182. "jsdom": "^21.1.0",
  183. "log-update": "^5.0.1",
  184. "magic-string": "^0.27.0",
  185. "micromatch": "^4.0.5",
  186. "mlly": "^1.1.0",
  187. "natural-compare": "^1.4.0",
  188. "p-limit": "^4.0.0",
  189. "pkg-types": "^1.0.1",
  190. "playwright": "^1.28.0",
  191. "pretty-format": "^27.5.1",
  192. "prompts": "^2.4.2",
  193. "rollup": "^2.79.1",
  194. "safaridriver": "^0.0.4",
  195. "strip-ansi": "^7.0.1",
  196. "typescript": "^4.9.4",
  197. "webdriverio": "^8.5.5",
  198. "ws": "^8.12.0",
  199. "x-default-browser": "^0.5.2"
  200. },
  201. "scripts": {
  202. "build": "rimraf dist && rollup -c",
  203. "dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline"
  204. }
  205. }