package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {
  2. "name": "vite",
  3. "version": "4.4.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. "types": "./dist/node/index.d.ts",
  24. "import": "./dist/node/index.js",
  25. "require": "./index.cjs"
  26. },
  27. "./client": {
  28. "types": "./client.d.ts"
  29. },
  30. "./dist/client/*": "./dist/client/*",
  31. "./package.json": "./package.json"
  32. },
  33. "files": [
  34. "bin",
  35. "dist",
  36. "client.d.ts",
  37. "index.cjs",
  38. "types"
  39. ],
  40. "engines": {
  41. "node": "^14.18.0 || >=16.0.0"
  42. },
  43. "repository": {
  44. "type": "git",
  45. "url": "git+https://github.com/vitejs/vite.git",
  46. "directory": "packages/vite"
  47. },
  48. "bugs": {
  49. "url": "https://github.com/vitejs/vite/issues"
  50. },
  51. "homepage": "https://github.com/vitejs/vite/tree/main/#readme",
  52. "funding": "https://github.com/vitejs/vite?sponsor=1",
  53. "scripts": {
  54. "dev": "rimraf dist && pnpm run build-bundle -w",
  55. "build": "rimraf dist && run-s build-bundle build-types",
  56. "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
  57. "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
  58. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
  59. "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
  60. "build-types-roll": "tsx scripts/api-extractor.ts run && rimraf temp",
  61. "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
  62. "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
  63. "typecheck": "tsc --noEmit",
  64. "lint": "eslint --cache --ext .ts src/**",
  65. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
  66. "prepublishOnly": "npm run build"
  67. },
  68. "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
  69. "dependencies": {
  70. "esbuild": "^0.18.10",
  71. "postcss": "^8.4.26",
  72. "rollup": "^3.25.2"
  73. },
  74. "optionalDependencies": {
  75. "fsevents": "~2.3.2"
  76. },
  77. "devDependencies": {
  78. "@ampproject/remapping": "^2.2.1",
  79. "@babel/parser": "^7.22.7",
  80. "@babel/types": "^7.22.5",
  81. "@jridgewell/trace-mapping": "^0.3.18",
  82. "@rollup/plugin-alias": "^4.0.4",
  83. "@rollup/plugin-commonjs": "^25.0.3",
  84. "@rollup/plugin-dynamic-import-vars": "^2.0.4",
  85. "@rollup/plugin-json": "^6.0.0",
  86. "@rollup/plugin-node-resolve": "15.1.0",
  87. "@rollup/plugin-typescript": "^11.1.2",
  88. "@rollup/pluginutils": "^5.0.2",
  89. "@types/escape-html": "^1.0.2",
  90. "@types/pnpapi": "^0.0.2",
  91. "acorn": "^8.10.0",
  92. "acorn-walk": "^8.2.0",
  93. "cac": "^6.7.14",
  94. "chokidar": "^3.5.3",
  95. "connect": "^3.7.0",
  96. "connect-history-api-fallback": "^2.0.0",
  97. "convert-source-map": "^2.0.0",
  98. "cors": "^2.8.5",
  99. "cross-spawn": "^7.0.3",
  100. "debug": "^4.3.4",
  101. "dep-types": "link:./src/types",
  102. "dotenv": "^16.3.1",
  103. "dotenv-expand": "^9.0.0",
  104. "es-module-lexer": "^1.3.0",
  105. "escape-html": "^1.0.3",
  106. "estree-walker": "^3.0.3",
  107. "etag": "^1.8.1",
  108. "fast-glob": "^3.3.0",
  109. "http-proxy": "^1.18.1",
  110. "json-stable-stringify": "^1.0.2",
  111. "launch-editor-middleware": "^2.6.0",
  112. "lightningcss": "^1.21.5",
  113. "magic-string": "^0.30.2",
  114. "micromatch": "^4.0.5",
  115. "mlly": "^1.4.0",
  116. "mrmime": "^1.0.1",
  117. "okie": "^1.0.1",
  118. "open": "^8.4.2",
  119. "parse5": "^7.1.2",
  120. "periscopic": "^3.1.0",
  121. "picocolors": "^1.0.0",
  122. "picomatch": "^2.3.1",
  123. "postcss-import": "^15.1.0",
  124. "postcss-load-config": "^4.0.1",
  125. "postcss-modules": "^6.0.0",
  126. "resolve.exports": "^2.0.2",
  127. "rollup-plugin-license": "^3.0.1",
  128. "sirv": "^2.0.3",
  129. "source-map-support": "^0.5.21",
  130. "strip-ansi": "^7.1.0",
  131. "strip-literal": "^1.0.1",
  132. "tsconfck": "^2.1.2",
  133. "tslib": "^2.6.0",
  134. "types": "link:./types",
  135. "ufo": "^1.1.2",
  136. "ws": "^8.13.0"
  137. },
  138. "peerDependencies": {
  139. "@types/node": ">= 14",
  140. "less": "*",
  141. "lightningcss": "^1.21.0",
  142. "sass": "*",
  143. "stylus": "*",
  144. "sugarss": "*",
  145. "terser": "^5.4.0"
  146. },
  147. "peerDependenciesMeta": {
  148. "@types/node": {
  149. "optional": true
  150. },
  151. "sass": {
  152. "optional": true
  153. },
  154. "stylus": {
  155. "optional": true
  156. },
  157. "less": {
  158. "optional": true
  159. },
  160. "sugarss": {
  161. "optional": true
  162. },
  163. "lightningcss": {
  164. "optional": true
  165. },
  166. "terser": {
  167. "optional": true
  168. }
  169. }
  170. }