Skip to content

Commit eff42b9

Browse files
committed
refactor(cli): only import load from js-yaml
1 parent 0cc8a2b commit eff42b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { field, Level, logger } from "@coder/logger"
22
import { promises as fs } from "fs"
3-
import yaml from "js-yaml"
3+
import { load } from "js-yaml"
44
import * as os from "os"
55
import * as path from "path"
66
import { canConnect, generateCertificate, generatePassword, humanPath, paths, isNodeJSErrnoException } from "./util"
@@ -657,7 +657,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
657657
return { config: configPath }
658658
}
659659

660-
const config = yaml.load(configFile, {
660+
const config = load(configFile, {
661661
filename: configPath,
662662
})
663663
if (!config || typeof config === "string") {

0 commit comments

Comments
 (0)