Skip to content

Commit ff6a7e8

Browse files
nhooyrcode-asher
authored andcommitted
Update dependencies in package.json
Updates #1898
1 parent c51daaf commit ff6a7e8

File tree

2 files changed

+1112
-1062
lines changed

2 files changed

+1112
-1062
lines changed

src/node/cli.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,14 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
357357
}
358358

359359
const configFile = await fs.readFile(configPath)
360-
const config = yaml.safeLoad(configFile.toString(), {
360+
let config = yaml.safeLoad(configFile.toString(), {
361361
filename: configPath,
362362
})
363363

364+
if (typeof config !== "object") {
365+
config = {}
366+
}
367+
364368
// We convert the config file into a set of flags.
365369
// This is a temporary measure until we add a proper CLI library.
366370
const configFileArgv = Object.entries(config).map(([optName, opt]) => {

0 commit comments

Comments
 (0)