package.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. {
  2. "name": "vitepress",
  3. "version": "2.0.0-alpha.5",
  4. "description": "Vite & Vue powered static site generator",
  5. "keywords": [
  6. "vite",
  7. "vue",
  8. "vitepress"
  9. ],
  10. "homepage": "https://vitepress.dev/",
  11. "bugs": {
  12. "url": "https://github.com/vuejs/vitepress/issues"
  13. },
  14. "repository": "github:vuejs/vitepress",
  15. "license": "MIT",
  16. "author": "Evan You",
  17. "type": "module",
  18. "exports": {
  19. ".": {
  20. "types": "./types/index.d.ts",
  21. "default": "./dist/node/index.js"
  22. },
  23. "./dist/*": "./dist/*",
  24. "./package.json": "./package.json",
  25. "./client": {
  26. "types": "./client.d.ts",
  27. "default": "./dist/client/index.js"
  28. },
  29. "./theme": {
  30. "types": "./theme.d.ts",
  31. "default": "./dist/client/theme-default/index.js"
  32. },
  33. "./theme-without-fonts": {
  34. "types": "./theme-without-fonts.d.ts",
  35. "default": "./dist/client/theme-default/without-fonts.js"
  36. }
  37. },
  38. "main": "dist/node/index.js",
  39. "types": "types/index.d.ts",
  40. "bin": {
  41. "vitepress": "bin/vitepress.js"
  42. },
  43. "files": [
  44. "bin",
  45. "dist",
  46. "types",
  47. "template",
  48. "client.d.ts",
  49. "theme.d.ts",
  50. "theme-without-fonts.d.ts",
  51. "lib"
  52. ],
  53. "scripts": {
  54. "dev": "rimraf dist && pnpm dev:shared && pnpm dev:start",
  55. "dev:start": "pnpm --stream '/^dev:(client|node|watch)$/'",
  56. "dev:client": "tsc --sourcemap -w --preserveWatchOutput -p src/client",
  57. "dev:node": "DEV=true pnpm build:node -w",
  58. "dev:shared": "node scripts/copyShared",
  59. "dev:watch": "node scripts/watchAndCopy",
  60. "build": "pnpm build:prepare && pnpm build:client && pnpm build:node",
  61. "build:prepare": "rimraf dist && node scripts/copyShared",
  62. "build:client": "vue-tsc --noEmit -p src/client && tsc -p src/client && node scripts/copyClient",
  63. "build:node": "tsc -p src/node --noEmit && rollup --config rollup.config.ts --configPlugin esbuild",
  64. "test": "pnpm --aggregate-output --reporter=append-only '/^test:(unit|e2e|init)$/'",
  65. "test:unit": "vitest run -r __tests__/unit",
  66. "test:unit:watch": "vitest -r __tests__/unit",
  67. "test:e2e": "pnpm test:e2e-dev && pnpm test:e2e-build",
  68. "test:e2e:site:dev": "pnpm -F=tests-e2e site:dev",
  69. "test:e2e:site:build": "pnpm -F=tests-e2e site:build",
  70. "test:e2e:site:preview": "pnpm -F=tests-e2e site:preview",
  71. "test:e2e-dev": "pnpm -F=tests-e2e test",
  72. "test:e2e-dev:watch": "pnpm -F=tests-e2e watch",
  73. "test:e2e-build": "VITE_TEST_BUILD=1 pnpm test:e2e-dev",
  74. "test:e2e-build:watch": "VITE_TEST_BUILD=1 pnpm test:e2e-dev:watch",
  75. "test:init": "pnpm -F=tests-init test",
  76. "test:init:watch": "pnpm -F=tests-init watch",
  77. "docs": "pnpm --stream '/^(docs:)?dev$/'",
  78. "docs:dev": "wait-on -d 100 dist/node/cli.js && pnpm -F=docs dev",
  79. "docs:debug": "NODE_OPTIONS='--inspect-brk' pnpm docs:dev",
  80. "docs:build": "pnpm build && pnpm docs:build:only",
  81. "docs:build:only": "pnpm -F=docs build",
  82. "docs:preview": "pnpm -F=docs preview",
  83. "docs:lunaria:build": "pnpm -F=docs lunaria:build",
  84. "docs:lunaria:open": "pnpm -F=docs lunaria:open",
  85. "format": "prettier --check --write .",
  86. "format:fail": "prettier --check .",
  87. "check": "pnpm format:fail && pnpm build && pnpm test",
  88. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  89. "release": "node scripts/release.js"
  90. },
  91. "simple-git-hooks": {
  92. "pre-commit": "pnpm lint-staged"
  93. },
  94. "lint-staged": {
  95. "*": "prettier --write --ignore-unknown"
  96. },
  97. "dependencies": {
  98. "@docsearch/css": "^3.9.0",
  99. "@docsearch/js": "^3.9.0",
  100. "@iconify-json/simple-icons": "^1.2.33",
  101. "@shikijs/core": "^3.4.0",
  102. "@shikijs/transformers": "^3.4.0",
  103. "@shikijs/types": "^3.4.0",
  104. "@vitejs/plugin-vue": "^5.2.4",
  105. "@vue/devtools-api": "^7.7.6",
  106. "@vue/shared": "^3.5.13",
  107. "@vueuse/core": "^13.1.0",
  108. "@vueuse/integrations": "^13.1.0",
  109. "focus-trap": "^7.6.4",
  110. "mark.js": "8.11.1",
  111. "minisearch": "^7.1.2",
  112. "shiki": "^3.4.0",
  113. "vite": "^6.3.5",
  114. "vue": "^3.5.13"
  115. },
  116. "devDependencies": {
  117. "@clack/prompts": "^1.0.0-alpha.0",
  118. "@iconify/utils": "^2.3.0",
  119. "@mdit-vue/plugin-component": "^2.1.4",
  120. "@mdit-vue/plugin-frontmatter": "^2.1.4",
  121. "@mdit-vue/plugin-headers": "^2.1.4",
  122. "@mdit-vue/plugin-sfc": "^2.1.4",
  123. "@mdit-vue/plugin-title": "^2.1.4",
  124. "@mdit-vue/plugin-toc": "^2.1.4",
  125. "@mdit-vue/shared": "^2.1.4",
  126. "@polka/compression": "^1.0.0-next.28",
  127. "@rollup/plugin-alias": "^5.1.1",
  128. "@rollup/plugin-commonjs": "^28.0.3",
  129. "@rollup/plugin-json": "^6.1.0",
  130. "@rollup/plugin-node-resolve": "^16.0.1",
  131. "@rollup/plugin-replace": "^6.0.2",
  132. "@types/cross-spawn": "^6.0.6",
  133. "@types/debug": "^4.1.12",
  134. "@types/fs-extra": "^11.0.4",
  135. "@types/lodash.template": "^4.5.3",
  136. "@types/mark.js": "^8.11.12",
  137. "@types/markdown-it": "^14.1.2",
  138. "@types/markdown-it-attrs": "^4.1.3",
  139. "@types/markdown-it-container": "^2.0.10",
  140. "@types/markdown-it-emoji": "^3.0.1",
  141. "@types/minimist": "^1.2.5",
  142. "@types/node": "^22.15.17",
  143. "@types/picomatch": "^4.0.0",
  144. "@types/postcss-prefix-selector": "^1.16.3",
  145. "@types/prompts": "^2.4.9",
  146. "chokidar": "^4.0.3",
  147. "conventional-changelog-cli": "^5.0.0",
  148. "cross-spawn": "^7.0.6",
  149. "debug": "^4.4.0",
  150. "esbuild": "^0.25.4",
  151. "execa": "^9.5.3",
  152. "fs-extra": "^11.3.0",
  153. "get-port": "^7.1.0",
  154. "gray-matter": "^4.0.3",
  155. "lint-staged": "^15.5.2",
  156. "lodash.template": "^4.5.0",
  157. "lru-cache": "^11.1.0",
  158. "markdown-it": "^14.1.0",
  159. "markdown-it-anchor": "^9.2.0",
  160. "markdown-it-async": "^2.2.0",
  161. "markdown-it-attrs": "^4.3.1",
  162. "markdown-it-container": "^4.0.0",
  163. "markdown-it-emoji": "^3.0.0",
  164. "markdown-it-mathjax3": "^4.3.2",
  165. "minimist": "^1.2.8",
  166. "nanoid": "^5.1.5",
  167. "ora": "^8.2.0",
  168. "p-map": "^7.0.3",
  169. "path-to-regexp": "^6.3.0",
  170. "picocolors": "^1.1.1",
  171. "picomatch": "^4.0.2",
  172. "pkg-dir": "^8.0.0",
  173. "playwright-chromium": "^1.52.0",
  174. "polka": "^1.0.0-next.28",
  175. "postcss-prefix-selector": "^2.1.1",
  176. "prettier": "^3.5.3",
  177. "prompts": "^2.4.2",
  178. "punycode": "^2.3.1",
  179. "rimraf": "^6.0.1",
  180. "rollup": "^4.40.2",
  181. "rollup-plugin-dts": "6.1.1",
  182. "rollup-plugin-esbuild": "^6.2.1",
  183. "semver": "^7.7.1",
  184. "simple-git-hooks": "^2.13.0",
  185. "sirv": "^3.0.1",
  186. "sitemap": "^8.0.0",
  187. "tinyglobby": "^0.2.13",
  188. "typescript": "^5.8.3",
  189. "vitest": "^3.1.3",
  190. "vue-tsc": "^3.0.0-alpha.6",
  191. "wait-on": "^8.0.3"
  192. },
  193. "peerDependencies": {
  194. "markdown-it-mathjax3": "^4",
  195. "postcss": "^8"
  196. },
  197. "peerDependenciesMeta": {
  198. "markdown-it-mathjax3": {
  199. "optional": true
  200. },
  201. "postcss": {
  202. "optional": true
  203. }
  204. },
  205. "packageManager": "pnpm@10.10.0",
  206. "pnpm": {
  207. "peerDependencyRules": {
  208. "ignoreMissing": [
  209. "@algolia/client-search",
  210. "search-insights",
  211. "postcss"
  212. ]
  213. },
  214. "overrides": {
  215. "ora>string-width": "^5"
  216. },
  217. "patchedDependencies": {
  218. "@types/mdurl@2.0.0": "patches/@types__mdurl@2.0.0.patch",
  219. "markdown-it-anchor@9.2.0": "patches/markdown-it-anchor@9.2.0.patch"
  220. },
  221. "neverBuiltDependencies": []
  222. }
  223. }