mirror of
https://github.com/vitejs/vite.git
synced 2026-10-29 00:44:44 +08:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sapphi-red <green@sapphi.red>
95 lines
2.9 KiB
JSON
95 lines
2.9 KiB
JSON
{
|
|
"name": "@vitejs/vite-monorepo",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
},
|
|
"homepage": "https://vite.dev/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/vitejs/vite.git"
|
|
},
|
|
"keywords": [
|
|
"frontend",
|
|
"hmr",
|
|
"dev-server",
|
|
"build-tool",
|
|
"vite"
|
|
],
|
|
"scripts": {
|
|
"preinstall": "npx only-allow pnpm",
|
|
"postinstall": "simple-git-hooks",
|
|
"format": "oxfmt",
|
|
"lint": "oxlint .",
|
|
"typecheck": "tsc -p scripts && pnpm -r --parallel run typecheck",
|
|
"test": "pnpm test-unit && pnpm test-serve && pnpm test-build",
|
|
"test-serve": "vitest run -c vitest.config.e2e.ts",
|
|
"test-serve-bundled": "VITE_TEST_BUNDLED_DEV=1 vitest run -c vitest.config.e2e.ts",
|
|
"test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
|
|
"test-unit": "vitest run",
|
|
"test-docs": "pnpm run docs-build",
|
|
"debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts",
|
|
"debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts",
|
|
"docs": "pnpm --filter=./docs run docs",
|
|
"docs-build": "pnpm --filter=./docs run docs-build",
|
|
"docs-serve": "pnpm --filter=./docs run docs-serve",
|
|
"build": "pnpm -r --filter='./packages/*' run build",
|
|
"dev": "pnpm -r --parallel --filter='./packages/*' run dev",
|
|
"ci-publish": "tsx scripts/publishCI.ts",
|
|
"ci-docs": "pnpm build && pnpm docs-build",
|
|
"merge-changelog": "tsx scripts/mergeChangelog.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@e18e/eslint-plugin": "^0.8.1",
|
|
"@type-challenges/utils": "^0.1.1",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/babel__preset-env": "^7.10.0",
|
|
"@types/convert-source-map": "^2.0.3",
|
|
"@types/etag": "^1.8.4",
|
|
"@types/less": "^3.0.8",
|
|
"@types/node": "^24.19.2",
|
|
"@types/picomatch": "^4.0.3",
|
|
"@types/stylus": "^0.48.43",
|
|
"@types/ws": "^8.18.2",
|
|
"@vitejs/release-scripts": "^1.10.0",
|
|
"eslint-plugin-n": "^18.5.0",
|
|
"eslint-plugin-regexp": "^3.3.1",
|
|
"execa": "^9.6.1",
|
|
"lint-staged": "^17.6.0",
|
|
"oxfmt": "^0.74.0",
|
|
"oxlint": "^1.89.0",
|
|
"oxlint-tsgolint": "^7.0.2005",
|
|
"picocolors": "^1.1.1",
|
|
"playwright-chromium": "^1.64.1",
|
|
"rolldown": "~1.2.15",
|
|
"rollup": "^4.59.0",
|
|
"simple-git-hooks": "^2.14.0",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "~7.0.2",
|
|
"vite": "workspace:*",
|
|
"vitest": "^5.0.5"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "pnpm exec lint-staged --concurrent false"
|
|
},
|
|
"lint-staged": {
|
|
"*": [
|
|
"oxfmt --no-error-on-unmatched-pattern"
|
|
],
|
|
"packages/*/{src,types}/**/*.ts": [
|
|
"oxlint --fix"
|
|
],
|
|
"packages/**/*.d.ts": [
|
|
"oxlint --fix"
|
|
],
|
|
"playground/**/__tests__/**/*.ts": [
|
|
"oxlint --fix"
|
|
]
|
|
},
|
|
"packageManager": "pnpm@12.15.0",
|
|
"stackblitz": {
|
|
"startCommand": "pnpm --filter='./packages/vite' run dev"
|
|
}
|
|
}
|