⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(ci): preserve OpenAPI checker argument boundaries
Tinf07a888fb8a3
diff --git a/scripts/openapi/check.mjs b/scripts/openapi/check.mjsindex fb0541bda..f21363571 100644--- a/scripts/openapi/check.mjs+++ b/scripts/openapi/check.mjs@@ -12,16 +12,28 @@ import { join, resolve } from "node:path";const COMMITTED = resolve("apps/docs/openapi.json");const FIX = process.argv.includes("--fix");+// Invoke pnpm through Node so Windows paths and arguments never pass through cmd.exe.+// biome-ignore lint/suspicious/noUndeclaredEnvVars: this entrypoint runs outside Turbo's task cache.+const packageManager = process.env.npm_execpath;+if (!packageManager) {+ throw new Error(+ "Run this check with pnpm openapi:check or pnpm openapi:check:fix",+ );+}const RUN = {stdio: ["ignore", "ignore", "inherit"],- shell: process.platform === "win32",};function generate(into) {- execFileSync("pnpm", ["turbo", "build", "--filter=@kaneo/api^..."], RUN);execFileSync(- "pnpm",+ process.execPath,+ [packageManager, "turbo", "build", "--filter=@kaneo/api^..."],+ RUN,+ );+ execFileSync(+ process.execPath,[+ packageManager,"--filter","@kaneo/api","exec",