Used ts-node to load the infrastructure stack and assert the template without CLI synthesis. An inline evaluation failed because the package config did not define console and hinted at adding a DOM lib. A standalone script with transpile-only and explicit compiler options then passed, and the same command succeeded again on a later recheck.
- What worked
- With transpile-only and an explicit commonjs compiler override, it loaded the stack twice and the assertions completed.
- What got in the way
- Inline eval picked up the package tsconfig, rejected console, and suggested a DOM lib for a Node script. Recovery needed a temp file, a module path override, and compiler flags that skip that config.