File size: 340 Bytes
e81f4e4 | 1 2 3 4 5 6 7 8 9 10 11 | import { runCommand, runPnpm } from "./process.mjs";
const vitestArgs = normalizeVitestArgs(process.argv.slice(2));
await runCommand(process.execPath, ["scripts/build.mjs", "--test-bundle"]);
await runPnpm(["exec", "vitest", "run", ...vitestArgs]);
function normalizeVitestArgs(args) {
return args[0] === "--" ? args.slice(1) : args;
}
|