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.

202 lines
5.1 KiB

  1. {
  2. "name": "vite",
  3. "version": "6.2.6",
  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. "module-sync": "./dist/node/index.js",
  24. "import": "./dist/node/index.js",
  25. "require": "./index.cjs"
  26. },
  27. "./client": {
  28. "types": "./client.d.ts"
  29. },
  30. "./module-runner": "./dist/node/module-runner.js",
  31. "./dist/client/*": "./dist/client/*",
  32. "./types/*": {
  33. "types": "./types/*"
  34. },
  35. "./types/internal/*": null,
  36. "./package.json": "./package.json"
  37. },
  38. "typesVersions": {
  39. "*": {
  40. "module-runner": [
  41. "dist/node/module-runner.d.ts"
  42. ]
  43. }
  44. },
  45. "imports": {
  46. "#module-sync-enabled": {
  47. "module-sync": "./misc/true.js",
  48. "default": "./misc/false.js"
  49. }
  50. },
  51. "files": [
  52. "bin",
  53. "dist",
  54. "misc/**/*.js",
  55. "client.d.ts",
  56. "index.cjs",
  57. "index.d.cts",
  58. "types"
  59. ],
  60. "engines": {
  61. "node": "^18.0.0 || ^20.0.0 || >=22.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.25.0",
  76. "postcss": "^8.5.3",
  77. "rollup": "^4.30.1"
  78. },
  79. "optionalDependencies": {
  80. "fsevents": "~2.3.3"
  81. },
  82. "devDependencies": {
  83. "@ampproject/remapping": "^2.3.0",
  84. "@babel/parser": "^7.26.9",
  85. "@jridgewell/trace-mapping": "^0.3.25",
  86. "@polka/compression": "^1.0.0-next.25",
  87. "@rollup/plugin-alias": "^5.1.1",
  88. "@rollup/plugin-commonjs": "^28.0.3",
  89. "@rollup/plugin-dynamic-import-vars": "2.1.4",
  90. "@rollup/plugin-json": "^6.1.0",
  91. "@rollup/plugin-node-resolve": "16.0.0",
  92. "@rollup/pluginutils": "^5.1.4",
  93. "@types/escape-html": "^1.0.4",
  94. "@types/pnpapi": "^0.0.5",
  95. "artichokie": "^0.3.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.6",
  102. "debug": "^4.4.0",
  103. "dep-types": "link:./src/types",
  104. "dotenv": "^16.4.7",
  105. "dotenv-expand": "^12.0.1",
  106. "es-module-lexer": "^1.6.0",
  107. "escape-html": "^1.0.3",
  108. "estree-walker": "^3.0.3",
  109. "etag": "^1.8.1",
  110. "http-proxy": "^1.18.1",
  111. "launch-editor-middleware": "^2.10.0",
  112. "lightningcss": "^1.29.2",
  113. "magic-string": "^0.30.17",
  114. "mlly": "^1.7.4",
  115. "mrmime": "^2.0.1",
  116. "nanoid": "^5.1.3",
  117. "open": "^10.1.0",
  118. "parse5": "^7.2.1",
  119. "pathe": "^2.0.3",
  120. "periscopic": "^4.0.2",
  121. "picocolors": "^1.1.1",
  122. "picomatch": "^4.0.2",
  123. "postcss-import": "^16.1.0",
  124. "postcss-load-config": "^6.0.1",
  125. "postcss-modules": "^6.0.1",
  126. "resolve.exports": "^2.0.3",
  127. "rollup-plugin-dts": "^6.1.1",
  128. "rollup-plugin-esbuild": "^6.2.1",
  129. "rollup-plugin-license": "^3.6.0",
  130. "sass": "^1.85.1",
  131. "sass-embedded": "^1.85.1",
  132. "sirv": "^3.0.1",
  133. "source-map-support": "^0.5.21",
  134. "strip-literal": "^3.0.0",
  135. "terser": "^5.39.0",
  136. "tinyglobby": "^0.2.12",
  137. "tsconfck": "^3.1.5",
  138. "tslib": "^2.8.1",
  139. "types": "link:./types",
  140. "ufo": "^1.5.4",
  141. "ws": "^8.18.1"
  142. },
  143. "peerDependencies": {
  144. "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
  145. "jiti": ">=1.21.0",
  146. "less": "*",
  147. "lightningcss": "^1.21.0",
  148. "sass": "*",
  149. "sass-embedded": "*",
  150. "stylus": "*",
  151. "sugarss": "*",
  152. "terser": "^5.16.0",
  153. "tsx": "^4.8.1",
  154. "yaml": "^2.4.2"
  155. },
  156. "peerDependenciesMeta": {
  157. "@types/node": {
  158. "optional": true
  159. },
  160. "jiti": {
  161. "optional": true
  162. },
  163. "sass": {
  164. "optional": true
  165. },
  166. "sass-embedded": {
  167. "optional": true
  168. },
  169. "stylus": {
  170. "optional": true
  171. },
  172. "less": {
  173. "optional": true
  174. },
  175. "sugarss": {
  176. "optional": true
  177. },
  178. "lightningcss": {
  179. "optional": true
  180. },
  181. "terser": {
  182. "optional": true
  183. },
  184. "tsx": {
  185. "optional": true
  186. },
  187. "yaml": {
  188. "optional": true
  189. }
  190. },
  191. "scripts": {
  192. "dev": "tsx scripts/dev.ts",
  193. "build": "premove dist && pnpm build-bundle && pnpm build-types",
  194. "build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
  195. "build-types": "pnpm build-types-temp && pnpm build-types-roll && pnpm build-types-check",
  196. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node/tsconfig.build.json",
  197. "build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && premove temp",
  198. "build-types-check": "tsc --project tsconfig.check.json",
  199. "typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
  200. "lint": "eslint --cache --ext .ts src/**",
  201. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
  202. }
  203. }