(args)
| 27 | ]); |
| 28 | |
| 29 | function resolveOutputFile(args) { |
| 30 | const index = args.indexOf("--out"); |
| 31 | if (index !== -1) { |
| 32 | const value = args[index + 1]; |
| 33 | if (value === undefined || value.length === 0) { |
| 34 | throw new Error("Missing value for --out"); |
| 35 | } |
| 36 | return resolve(process.cwd(), value); |
| 37 | } |
| 38 | return resolve(scriptDir, "../dist/built-in-catalog.json"); |
| 39 | } |
| 40 | |
| 41 | function stripModel(model) { |
| 42 | if (typeof model !== "object" || model === null) return undefined; |
no test coverage detected