Files
modelstudioai__cli/vite.config.ts
T

28 lines
791 B
TypeScript
Raw Normal View History

2026-05-28 18:37:07 +08:00
import { defineConfig } from "vite-plus";
export default defineConfig({
test: {
globalSetup: "./packages/cli/tests/e2e/global-setup.ts",
testTimeout: 60_000,
hookTimeout: 60_000,
},
staged: {
"*.{js,mjs,cjs,ts,mts,cts,jsx,tsx,json,yaml,yml,md}": "vp check --fix",
2026-05-28 18:37:07 +08:00
},
lint: {
options: { typeAware: true, typeCheck: true },
// 命令只许抛错;进程退出统一收口到 runtime 的 handleError。
rules: { "unicorn/no-process-exit": "error" },
overrides: [
{
// runtime 是统一出口层tools/ 与测试是独立脚本入口,可直接退出。
files: ["packages/runtime/src/**", "tools/**", "**/tests/**"],
rules: { "unicorn/no-process-exit": "off" },
},
],
},
2026-05-28 18:37:07 +08:00
run: {
cache: true,
},
});