e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
35 lines
951 B
JavaScript
35 lines
951 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { spawnSync } from "node:child_process";
|
|
import path from "node:path";
|
|
import { hasOption, optionArgs, optionValues } from "./lib/script-options.mjs";
|
|
|
|
const repoRoot = process.cwd();
|
|
const scriptArgs = process.argv.slice(2);
|
|
const filters = optionValues(scriptArgs, "--filter");
|
|
const skipBuild = hasOption(scriptArgs, "--skip-build");
|
|
|
|
function run(command, args) {
|
|
const result = spawnSync(command, args, {
|
|
cwd: repoRoot,
|
|
stdio: "inherit",
|
|
});
|
|
if (result.status !== 0) {
|
|
process.exit(result.status ?? 1);
|
|
}
|
|
}
|
|
|
|
const buildFilterArgs = filters.length
|
|
? optionArgs("--filter", filters)
|
|
: ["--filter", "./packages/*"];
|
|
|
|
if (!skipBuild) {
|
|
run("pnpm", ["exec", "turbo", "build", "--force", ...buildFilterArgs]);
|
|
}
|
|
run("node", [
|
|
path.join("scripts", "generate-api-surface.mjs"),
|
|
"--check",
|
|
...optionArgs("--filter", filters),
|
|
]);
|
|
run("pnpm", ["--filter", "@assistant-ui/api-surface", "check"]);
|