(command, args, options = {})
| 16 | const rootTinybPath = path.join(PROJECT_ROOT, ".tinyb"); |
| 17 | |
| 18 | const run = (command, args, options = {}) => { |
| 19 | const result = spawnSync(command, args, { |
| 20 | stdio: "inherit", |
| 21 | ...options, |
| 22 | }); |
| 23 | if (result.error || result.status !== 0) { |
| 24 | const message = |
| 25 | result.error?.message || `Command ${command} ${args.join(" ")} failed.`; |
| 26 | throw new Error(message); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | const ensureTinybirdCli = () => { |
| 31 | try { |
no outgoing calls
no test coverage detected