Phase G — Installs npm dependencies and builds all workspace packages.
const deps = new DependencyPhase();const result = await deps.Run({ Dir: '/path/to/install', Emitter: emitter });if (result.BuildPartial) { console.log('Partial build — CodeGen will fix remaining packages');} Copy
const deps = new DependencyPhase();const result = await deps.Run({ Dir: '/path/to/install', Emitter: emitter });if (result.BuildPartial) { console.log('Partial build — CodeGen will fix remaining packages');}
Execute the dependency phase: npm install then npm run build.
npm install
npm run build
Dependency input with directory and emitter.
Install/build status and collected warnings.
With code NPM_INSTALL_FAILED or NPM_INSTALL_TIMEOUT on install failure.
NPM_INSTALL_FAILED
NPM_INSTALL_TIMEOUT
With code BUILD_FAILED or BUILD_TIMEOUT on non-codegen build failure.
BUILD_FAILED
BUILD_TIMEOUT
Phase G — Installs npm dependencies and builds all workspace packages.
Example