Ultimate

X_SCAFFOLD_PATH_ESCAPE

Means

a generated path resolves outside the scaffold sandbox

Typical cause

a .. segment or an absolute path in a template's GeneratedFile.path

Fix

make the path relative to the app root with no .., then bun test packages/cli/src/scaffold-typecheck.contract.test.ts

Listed under CLI and verify

This page as markdown