build
Run a production build step for the current project.
Purpose
mcpkit build wraps a TypeScript build flow.
Basic syntax
mcpkit buildVerified options
-o, --outDir <outDir>default:dist--no-clean--dry-run-v, --verbose
Examples
mcpkit buildmcpkit build --outDir dist --no-cleanExpected behavior
- resolves the chosen output directory
- removes that directory unless
--no-cleanis used - runs
npx tsc - reports counts of
.jsand.d.tsfiles if the output directory exists afterward
Important caveat
The command accepts --outDir, but the actual compile step is still npx tsc. That means the final emitted output directory still depends on the project's tsconfig.json, not only on this flag.