(exitCode: number = 1)
| 14 | import { runBuild } from "./transform/run.js"; |
| 15 | |
| 16 | function usage(exitCode: number = 1): never { |
| 17 | let out = exitCode === 0 ? console.log : console.error; |
| 18 | out(`Usage: |
| 19 | capnweb-validate build --out <dir> [options] |
| 20 | |
| 21 | Options: |
| 22 | --out <dir> Directory to write transformed sources to. Required. |
| 23 | --tsconfig <path> Path to tsconfig.json. Defaults to ./tsconfig.json. |
| 24 | --cwd <dir> Working directory. Defaults to process.cwd(). |
| 25 | --server-validation <mode> How server-side checks behave: throw | warn. Default throw. |
| 26 | -h, --help Show this message.`); |
| 27 | process.exit(exitCode); |
| 28 | } |
| 29 | |
| 30 | type BuildArgs = { |
| 31 | out?: string; |
no outgoing calls
no test coverage detected
searching dependent graphs…