diff --git a/scripts/check-regen-pending.mjs b/scripts/check-regen-pending.mjs index 93af08f21a..cc541d6204 100755 --- a/scripts/check-regen-pending.mjs +++ b/scripts/check-regen-pending.mjs @@ -67,7 +67,7 @@ import { execFileSync, execSync, spawnSync } from 'node:child_process'; import { appendFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { dirname, join, resolve } from 'node:path'; +import { delimiter, dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { PENDING_MARKER, entryForPath, ownerDir, ownerOf, ownerRunCommand } from './regen-artifacts.mjs'; @@ -90,6 +90,39 @@ const SPEC_DIR = join(REPO_ROOT, 'packages/spec'); */ const GATE_CWD_OVERRIDE = process.env.OS_REGEN_GATE_CWD || null; +/** + * The launcher the gates are spawned THROUGH. Production leaves this unset and + * every gate runs as `pnpm -s