package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "name": "vite",
  3. "version": "4.1.4",
  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. "scripts": {
  53. "dev": "rimraf dist && pnpm run build-bundle -w",
  54. "build": "rimraf dist && run-s build-bundle build-types",
  55. "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
  56. "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
  57. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
  58. "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
  59. "build-types-roll": "api-extractor run && rimraf temp",
  60. "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
  61. "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",
  62. "typecheck": "tsc --noEmit",
  63. "lint": "eslint --cache --ext .ts src/**",
  64. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
  65. "prepublishOnly": "npm run build"
  66. },
  67. "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
  68. "dependencies": {
  69. "esbuild": "^0.16.14",
  70. "postcss": "^8.4.21",
  71. "resolve": "^1.22.1",
  72. "rollup": "^3.10.0"
  73. },
  74. "optionalDependencies": {
  75. "fsevents": "~2.3.2"
  76. },
  77. "devDependencies": {
  78. "@ampproject/remapping": "^2.2.0",
  79. "@babel/parser": "^7.20.13",
  80. "@babel/types": "^7.20.7",
  81. "@jridgewell/trace-mapping": "^0.3.17",
  82. "@rollup/plugin-alias": "^4.0.3",
  83. "@rollup/plugin-commonjs": "^24.0.1",
  84. "@rollup/plugin-dynamic-import-vars": "^2.0.3",
  85. "@rollup/plugin-json": "^6.0.0",
  86. "@rollup/plugin-node-resolve": "15.0.1",
  87. "@rollup/plugin-typescript": "^11.0.0",
  88. "@rollup/pluginutils": "^5.0.2",
  89. "acorn": "^8.8.2",
  90. "acorn-walk": "^8.2.0",
  91. "cac": "^6.7.14",
  92. "chokidar": "^3.5.3",
  93. "connect": "^3.7.0",
  94. "connect-history-api-fallback": "^2.0.0",
  95. "convert-source-map": "^2.0.0",
  96. "cors": "^2.8.5",
  97. "cross-spawn": "^7.0.3",
  98. "debug": "^4.3.4",
  99. "dep-types": "link:./src/types",
  100. "dotenv": "^16.0.3",
  101. "dotenv-expand": "^9.0.0",
  102. "es-module-lexer": "^1.1.0",
  103. "estree-walker": "^3.0.3",
  104. "etag": "^1.8.1",
  105. "fast-glob": "^3.2.12",
  106. "http-proxy": "^1.18.1",
  107. "json-stable-stringify": "^1.0.2",
  108. "launch-editor-middleware": "^2.6.0",
  109. "magic-string": "^0.27.0",
  110. "micromatch": "^4.0.5",
  111. "mlly": "^1.1.0",
  112. "mrmime": "^1.0.1",
  113. "okie": "^1.0.1",
  114. "open": "^8.4.0",
  115. "parse5": "^7.1.2",
  116. "periscopic": "^3.1.0",
  117. "picocolors": "^1.0.0",
  118. "picomatch": "^2.3.1",
  119. "postcss-import": "^15.1.0",
  120. "postcss-load-config": "^4.0.1",
  121. "postcss-modules": "^6.0.0",
  122. "resolve.exports": "^2.0.0",
  123. "rollup-plugin-license": "^3.0.1",
  124. "sirv": "^2.0.2",
  125. "source-map-js": "^1.0.2",
  126. "source-map-support": "^0.5.21",
  127. "strip-ansi": "^7.0.1",
  128. "strip-literal": "^1.0.1",
  129. "tsconfck": "^2.0.2",
  130. "tslib": "^2.5.0",
  131. "types": "link:./types",
  132. "ufo": "^1.0.1",
  133. "ws": "^8.12.0"
  134. },
  135. "peerDependencies": {
  136. "@types/node": ">= 14",
  137. "less": "*",
  138. "sass": "*",
  139. "stylus": "*",
  140. "sugarss": "*",
  141. "terser": "^5.4.0"
  142. },
  143. "peerDependenciesMeta": {
  144. "@types/node": {
  145. "optional": true
  146. },
  147. "sass": {
  148. "optional": true
  149. },
  150. "stylus": {
  151. "optional": true
  152. },
  153. "less": {
  154. "optional": true
  155. },
  156. "sugarss": {
  157. "optional": true
  158. },
  159. "terser": {
  160. "optional": true
  161. }
  162. }
  163. }