Function: prepareAndRunProjen()
prepareAndRunProjen(
projenArgs,startDir?):Promise<void>
Prepare the workspace at root, then run projen (via bun) with projenArgs.
Three cases, in order:
- no
.projenrc.tsat all -> full bootstrap (scaffold + install + synth), which already runs the initial synth; nothing more to forward. - a
.projenrc.tsbut the engine/toolchain isn’t installed (e.g. a freshly copied project whose generated files + manifests are gitignored) -> seed the toolchain, then run the INITIAL synth directly (the projen tasks the args would name, likesync, don’t exist until.projenrc.tshas run once), and install. Don’t forwardprojenArgs- the synth is the work. - otherwise (established workspace) -> ensure deps, bring the engine up to this CLI’s version, then forward to projen.
Parameters
Section titled “Parameters”projenArgs
Section titled “projenArgs”string[]
startDir?
Section titled “startDir?”string
Returns
Section titled “Returns”Promise<void>