package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. {
  2. "name": "vite",
  3. "version": "5.2.8",
  4. "type": "module",
  5. "license": "MIT",
  6. "author": "Evan You",
  7. "description": "Native-ESM powered web dev build tool",
  8. "bin": {
  9. "vite": "bin/vite.js"
  10. },
  11. "keywords": [
  12. "frontend",
  13. "framework",
  14. "hmr",
  15. "dev-server",
  16. "build-tool",
  17. "vite"
  18. ],
  19. "main": "./dist/node/index.js",
  20. "types": "./dist/node/index.d.ts",
  21. "exports": {
  22. ".": {
  23. "import": {
  24. "types": "./dist/node/index.d.ts",
  25. "default": "./dist/node/index.js"
  26. },
  27. "require": {
  28. "types": "./index.d.cts",
  29. "default": "./index.cjs"
  30. }
  31. },
  32. "./client": {
  33. "types": "./client.d.ts"
  34. },
  35. "./runtime": {
  36. "types": "./dist/node/runtime.d.ts",
  37. "import": "./dist/node/runtime.js"
  38. },
  39. "./dist/client/*": "./dist/client/*",
  40. "./types/*": {
  41. "types": "./types/*"
  42. },
  43. "./package.json": "./package.json"
  44. },
  45. "typesVersions": {
  46. "*": {
  47. "runtime": [
  48. "dist/node/runtime.d.ts"
  49. ]
  50. }
  51. },
  52. "files": [
  53. "bin",
  54. "dist",
  55. "client.d.ts",
  56. "index.cjs",
  57. "index.d.cts",
  58. "types"
  59. ],
  60. "engines": {
  61. "node": "^18.0.0 || >=20.0.0"
  62. },
  63. "repository": {
  64. "type": "git",
  65. "url": "git+https://github.com/vitejs/vite.git",
  66. "directory": "packages/vite"
  67. },
  68. "bugs": {
  69. "url": "https://github.com/vitejs/vite/issues"
  70. },
  71. "homepage": "https://vitejs.dev",
  72. "funding": "https://github.com/vitejs/vite?sponsor=1",
  73. "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
  74. "dependencies": {
  75. "esbuild": "^0.20.1",
  76. "postcss": "^8.4.38",
  77. "rollup": "^4.13.0"
  78. },
  79. "optionalDependencies": {
  80. "fsevents": "~2.3.3"
  81. },
  82. "devDependencies": {
  83. "@ampproject/remapping": "^2.3.0",
  84. "@babel/parser": "^7.24.1",
  85. "@jridgewell/trace-mapping": "^0.3.25",
  86. "@polka/compression": "^1.0.0-next.25",
  87. "@rollup/plugin-alias": "^5.1.0",
  88. "@rollup/plugin-commonjs": "^25.0.7",
  89. "@rollup/plugin-dynamic-import-vars": "^2.1.2",
  90. "@rollup/plugin-json": "^6.1.0",
  91. "@rollup/plugin-node-resolve": "15.2.3",
  92. "@rollup/plugin-typescript": "^11.1.6",
  93. "@rollup/pluginutils": "^5.1.0",
  94. "@types/escape-html": "^1.0.4",
  95. "@types/pnpapi": "^0.0.5",
  96. "acorn": "^8.11.3",
  97. "acorn-walk": "^8.3.2",
  98. "artichokie": "^0.2.0",
  99. "cac": "^6.7.14",
  100. "chokidar": "^3.6.0",
  101. "connect": "^3.7.0",
  102. "convert-source-map": "^2.0.0",
  103. "cors": "^2.8.5",
  104. "cross-spawn": "^7.0.3",
  105. "debug": "^4.3.4",
  106. "dep-types": "link:./src/types",
  107. "dotenv": "^16.4.5",
  108. "dotenv-expand": "^11.0.6",
  109. "es-module-lexer": "^1.5.0",
  110. "escape-html": "^1.0.3",
  111. "estree-walker": "^3.0.3",
  112. "etag": "^1.8.1",
  113. "fast-glob": "^3.3.2",
  114. "http-proxy": "^1.18.1",
  115. "launch-editor-middleware": "^2.6.1",
  116. "lightningcss": "^1.24.1",
  117. "magic-string": "^0.30.8",
  118. "micromatch": "^4.0.5",
  119. "mlly": "^1.6.1",
  120. "mrmime": "^2.0.0",
  121. "open": "^8.4.2",
  122. "parse5": "^7.1.2",
  123. "pathe": "^1.1.2",
  124. "periscopic": "^4.0.2",
  125. "picocolors": "^1.0.0",
  126. "picomatch": "^2.3.1",
  127. "postcss-import": "^16.1.0",
  128. "postcss-load-config": "^4.0.2",
  129. "postcss-modules": "^6.0.0",
  130. "resolve.exports": "^2.0.2",
  131. "rollup-plugin-dts": "^6.1.0",
  132. "rollup-plugin-esbuild": "^6.1.1",
  133. "rollup-plugin-license": "^3.3.1",
  134. "sass": "^1.72.0",
  135. "sirv": "^2.0.4",
  136. "source-map-support": "^0.5.21",
  137. "strip-ansi": "^7.1.0",
  138. "strip-literal": "^2.1.0",
  139. "tsconfck": "^3.0.3",
  140. "tslib": "^2.6.2",
  141. "types": "link:./types",
  142. "ufo": "^1.5.3",
  143. "ws": "^8.16.0"
  144. },
  145. "peerDependencies": {
  146. "@types/node": "^18.0.0 || >=20.0.0",
  147. "less": "*",
  148. "lightningcss": "^1.21.0",
  149. "sass": "*",
  150. "stylus": "*",
  151. "sugarss": "*",
  152. "terser": "^5.4.0"
  153. },
  154. "peerDependenciesMeta": {
  155. "@types/node": {
  156. "optional": true
  157. },
  158. "sass": {
  159. "optional": true
  160. },
  161. "stylus": {
  162. "optional": true
  163. },
  164. "less": {
  165. "optional": true
  166. },
  167. "sugarss": {
  168. "optional": true
  169. },
  170. "lightningcss": {
  171. "optional": true
  172. },
  173. "terser": {
  174. "optional": true
  175. }
  176. },
  177. "scripts": {
  178. "dev": "rimraf dist && pnpm run build-bundle -w",
  179. "build": "rimraf dist && run-s build-bundle build-types",
  180. "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
  181. "build-types": "run-s build-types-temp build-types-roll build-types-check",
  182. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
  183. "build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
  184. "build-types-check": "tsc --project tsconfig.check.json",
  185. "typecheck": "tsc --noEmit",
  186. "lint": "eslint --cache --ext .ts src/**",
  187. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
  188. }
  189. }