package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {
  2. "name": "vite",
  3. "version": "5.4.10",
  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://vite.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.21.3",
  76. "postcss": "^8.4.43",
  77. "rollup": "^4.20.0"
  78. },
  79. "optionalDependencies": {
  80. "fsevents": "~2.3.3"
  81. },
  82. "devDependencies": {
  83. "@ampproject/remapping": "^2.3.0",
  84. "@babel/parser": "^7.25.6",
  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": "^26.0.1",
  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/pluginutils": "^5.1.0",
  93. "@types/escape-html": "^1.0.4",
  94. "@types/pnpapi": "^0.0.5",
  95. "artichokie": "^0.2.1",
  96. "cac": "^6.7.14",
  97. "chokidar": "^3.6.0",
  98. "connect": "^3.7.0",
  99. "convert-source-map": "^2.0.0",
  100. "cors": "^2.8.5",
  101. "cross-spawn": "^7.0.3",
  102. "debug": "^4.3.6",
  103. "dep-types": "link:./src/types",
  104. "dotenv": "^16.4.5",
  105. "dotenv-expand": "^11.0.6",
  106. "es-module-lexer": "^1.5.4",
  107. "escape-html": "^1.0.3",
  108. "estree-walker": "^3.0.3",
  109. "etag": "^1.8.1",
  110. "fast-glob": "^3.3.2",
  111. "http-proxy": "^1.18.1",
  112. "launch-editor-middleware": "^2.9.1",
  113. "lightningcss": "^1.26.0",
  114. "magic-string": "^0.30.11",
  115. "micromatch": "^4.0.8",
  116. "mlly": "^1.7.1",
  117. "mrmime": "^2.0.0",
  118. "open": "^8.4.2",
  119. "parse5": "^7.1.2",
  120. "pathe": "^1.1.2",
  121. "periscopic": "^4.0.2",
  122. "picocolors": "^1.0.1",
  123. "picomatch": "^2.3.1",
  124. "postcss-import": "^16.1.0",
  125. "postcss-load-config": "^4.0.2",
  126. "postcss-modules": "^6.0.0",
  127. "resolve.exports": "^2.0.2",
  128. "rollup-plugin-dts": "^6.1.1",
  129. "rollup-plugin-esbuild": "^6.1.1",
  130. "rollup-plugin-license": "^3.5.2",
  131. "sass": "^1.77.8",
  132. "sass-embedded": "^1.77.8",
  133. "sirv": "^2.0.4",
  134. "source-map-support": "^0.5.21",
  135. "strip-ansi": "^7.1.0",
  136. "strip-literal": "^2.1.0",
  137. "tsconfck": "^3.1.4",
  138. "tslib": "^2.7.0",
  139. "types": "link:./types",
  140. "ufo": "^1.5.4",
  141. "ws": "^8.18.0"
  142. },
  143. "peerDependencies": {
  144. "@types/node": "^18.0.0 || >=20.0.0",
  145. "less": "*",
  146. "lightningcss": "^1.21.0",
  147. "sass": "*",
  148. "sass-embedded": "*",
  149. "stylus": "*",
  150. "sugarss": "*",
  151. "terser": "^5.4.0"
  152. },
  153. "peerDependenciesMeta": {
  154. "@types/node": {
  155. "optional": true
  156. },
  157. "sass": {
  158. "optional": true
  159. },
  160. "sass-embedded": {
  161. "optional": true
  162. },
  163. "stylus": {
  164. "optional": true
  165. },
  166. "less": {
  167. "optional": true
  168. },
  169. "sugarss": {
  170. "optional": true
  171. },
  172. "lightningcss": {
  173. "optional": true
  174. },
  175. "terser": {
  176. "optional": true
  177. }
  178. },
  179. "scripts": {
  180. "dev": "tsx scripts/dev.ts",
  181. "build": "rimraf dist && run-s build-bundle build-types",
  182. "build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
  183. "build-types": "run-s build-types-temp build-types-roll build-types-check",
  184. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
  185. "build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && rimraf temp",
  186. "build-types-check": "tsc --project tsconfig.check.json",
  187. "typecheck": "tsc --noEmit",
  188. "lint": "eslint --cache --ext .ts src/**",
  189. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
  190. }
  191. }