()
| 433 | } |
| 434 | |
| 435 | export async function readInstantConfigFile() { |
| 436 | return ( |
| 437 | await loadConfig({ |
| 438 | sources: [ |
| 439 | // load from `instant.config.xx` |
| 440 | { |
| 441 | files: 'instant.config', |
| 442 | extensions: ['ts', 'mts', 'cts', 'js', 'mjs', 'cjs', 'json'], |
| 443 | }, |
| 444 | ], |
| 445 | // if false, the only the first matched will be loaded |
| 446 | // if true, all matched will be loaded and deep merged |
| 447 | merge: false, |
| 448 | }) |
| 449 | ).config; |
| 450 | } |
| 451 | |
| 452 | async function readConfigAuthToken(allowAdminToken = true) { |
| 453 | const options = program.opts(); |
no test coverage detected