2026-06-23 17:51:14 +08:00
|
|
|
import { defineConfig } from "vite-plus";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-07-08 14:05:48 +08:00
|
|
|
test: {
|
2026-07-10 11:46:05 +08:00
|
|
|
globalSetup: "../e2e/src/global-setup.ts",
|
2026-07-08 14:05:48 +08:00
|
|
|
testTimeout: 60_000,
|
|
|
|
|
hookTimeout: 60_000,
|
|
|
|
|
},
|
2026-06-23 17:51:14 +08:00
|
|
|
pack: {
|
|
|
|
|
entry: {
|
2026-07-08 14:05:48 +08:00
|
|
|
kscli: "src/main.ts",
|
2026-06-23 17:51:14 +08:00
|
|
|
},
|
|
|
|
|
hash: false,
|
|
|
|
|
minify: true,
|
|
|
|
|
platform: "node",
|
|
|
|
|
banner: "#!/usr/bin/env node\n",
|
|
|
|
|
outputOptions: {
|
|
|
|
|
codeSplitting: false,
|
|
|
|
|
},
|
|
|
|
|
dts: {
|
|
|
|
|
tsgo: true,
|
|
|
|
|
},
|
|
|
|
|
exports: true,
|
|
|
|
|
},
|
|
|
|
|
lint: {
|
|
|
|
|
options: {
|
|
|
|
|
typeAware: true,
|
|
|
|
|
typeCheck: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
fmt: {},
|
|
|
|
|
});
|