This is a small pnpm workspace reproduction for a flaky Payload CLI startup issue in [email protected].
The failure mode is:
payload generate:db-schemaexits with status0.apps/repro/src/payload-generated-schema.tsis not created.
Run:
corepack enable
pnpm install
pnpm reproThe repro script removes apps/repro/src/payload-generated-schema.ts, invokes payload generate:db-schema through pnpm --filter, and fails if Payload exits successfully without writing the file.
If your environment always reproduces on the first run, use a warmup run to keep checking later invocations:
WARMUP_RUNS=1 RUNS=50 pnpm reproTo see every reproduction instead of stopping at the first checked failure:
CONTINUE_AFTER_REPRO=1 RUNS=50 pnpm repro