package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "name": "vite",
  3. "version": "3.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. "main": "./dist/node/index.js",
  12. "module": "./dist/node/index.js",
  13. "types": "./dist/node/index.d.ts",
  14. "exports": {
  15. ".": {
  16. "types": "./dist/node/index.d.ts",
  17. "import": "./dist/node/index.js",
  18. "require": "./index.cjs"
  19. },
  20. "./client": {
  21. "types": "./client.d.ts"
  22. },
  23. "./dist/client/*": "./dist/client/*",
  24. "./package.json": "./package.json"
  25. },
  26. "files": [
  27. "bin",
  28. "dist",
  29. "client.d.ts",
  30. "index.cjs",
  31. "types"
  32. ],
  33. "engines": {
  34. "node": "^14.18.0 || >=16.0.0"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/vitejs/vite.git",
  39. "directory": "packages/vite"
  40. },
  41. "bugs": {
  42. "url": "https://github.com/vitejs/vite/issues"
  43. },
  44. "homepage": "https://github.com/vitejs/vite/tree/main/#readme",
  45. "scripts": {
  46. "dev": "rimraf dist && pnpm run build-bundle -w",
  47. "build": "rimraf dist && run-s build-bundle build-types",
  48. "build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
  49. "build-types": "run-s build-types-temp build-types-pre-patch build-types-roll build-types-post-patch build-types-check",
  50. "build-types-temp": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
  51. "build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
  52. "build-types-roll": "api-extractor run && rimraf temp",
  53. "build-types-post-patch": "tsx scripts/postPatchTypes.ts",
  54. "build-types-check": "tsc --project tsconfig.check.json",
  55. "lint": "eslint --cache --ext .ts src/**",
  56. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
  57. "prepublishOnly": "npm run build"
  58. },
  59. "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
  60. "dependencies": {
  61. "esbuild": "^0.15.9",
  62. "postcss": "^8.4.18",
  63. "resolve": "^1.22.1",
  64. "rollup": "^2.79.1"
  65. },
  66. "optionalDependencies": {
  67. "fsevents": "~2.3.2"
  68. },
  69. "devDependencies": {
  70. "@ampproject/remapping": "^2.2.0",
  71. "@babel/parser": "^7.20.0",
  72. "@babel/types": "^7.20.0",
  73. "@jridgewell/trace-mapping": "^0.3.17",
  74. "@rollup/plugin-alias": "^4.0.2",
  75. "@rollup/plugin-commonjs": "^23.0.2",
  76. "@rollup/plugin-dynamic-import-vars": "^2.0.1",
  77. "@rollup/plugin-json": "^4.1.0",
  78. "@rollup/plugin-node-resolve": "14.1.0",
  79. "@rollup/plugin-typescript": "^8.5.0",
  80. "@rollup/pluginutils": "^4.2.1",
  81. "@types/escape-html": "^1.0.0",
  82. "acorn": "^8.8.1",
  83. "acorn-walk": "^8.2.0",
  84. "cac": "^6.7.14",
  85. "chokidar": "^3.5.3",
  86. "connect": "^3.7.0",
  87. "connect-history-api-fallback": "^2.0.0",
  88. "convert-source-map": "^1.9.0",
  89. "cors": "^2.8.5",
  90. "cross-spawn": "^7.0.3",
  91. "debug": "^4.3.4",
  92. "dep-types": "link:./src/types",
  93. "dotenv": "^14.3.2",
  94. "dotenv-expand": "^5.1.0",
  95. "es-module-lexer": "^1.1.0",
  96. "escape-html": "^1.0.3",
  97. "estree-walker": "^3.0.1",
  98. "etag": "^1.8.1",
  99. "fast-glob": "^3.2.12",
  100. "http-proxy": "^1.18.1",
  101. "json5": "^2.2.1",
  102. "launch-editor-middleware": "^2.6.0",
  103. "magic-string": "^0.26.7",
  104. "micromatch": "^4.0.5",
  105. "mlly": "^0.5.16",
  106. "mrmime": "^1.0.1",
  107. "okie": "^1.0.1",
  108. "open": "^8.4.0",
  109. "parse5": "^7.1.1",
  110. "periscopic": "^3.0.4",
  111. "picocolors": "^1.0.0",
  112. "picomatch": "^2.3.1",
  113. "postcss-import": "^15.0.0",
  114. "postcss-load-config": "^4.0.1",
  115. "postcss-modules": "^6.0.0",
  116. "resolve.exports": "^1.1.0",
  117. "sirv": "^2.0.2",
  118. "source-map-js": "^1.0.2",
  119. "source-map-support": "^0.5.21",
  120. "strip-ansi": "^7.0.1",
  121. "strip-literal": "^0.4.2",
  122. "tsconfck": "^2.0.1",
  123. "tslib": "^2.4.0",
  124. "types": "link:./types",
  125. "ufo": "^0.8.6",
  126. "ws": "^8.10.0"
  127. },
  128. "peerDependencies": {
  129. "@types/node": ">= 14",
  130. "less": "*",
  131. "sass": "*",
  132. "stylus": "*",
  133. "sugarss": "*",
  134. "terser": "^5.4.0"
  135. },
  136. "peerDependenciesMeta": {
  137. "@types/node": {
  138. "optional": true
  139. },
  140. "sass": {
  141. "optional": true
  142. },
  143. "stylus": {
  144. "optional": true
  145. },
  146. "less": {
  147. "optional": true
  148. },
  149. "sugarss": {
  150. "optional": true
  151. },
  152. "terser": {
  153. "optional": true
  154. }
  155. }
  156. }