Archived
1
0

chore(deps): update prettier and eslint (#5700)

* chore(deps): update eslint/prettier deps

* refactor(cli): only import load from js-yaml

* chore(deps): remove minimatch resolution

* fixup! update yarn lock
This commit is contained in:
Joe Previte
2022-10-25 09:39:06 -07:00
committed by GitHub
parent 1134ee1c79
commit b19996176e
3 changed files with 685 additions and 671 deletions

View File

@ -1,6 +1,6 @@
import { field, Level, logger } from "@coder/logger"
import { promises as fs } from "fs"
import yaml from "js-yaml"
import { load } from "js-yaml"
import * as os from "os"
import * as path from "path"
import { canConnect, generateCertificate, generatePassword, humanPath, paths, isNodeJSErrnoException } from "./util"
@ -657,7 +657,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
return { config: configPath }
}
const config = yaml.load(configFile, {
const config = load(configFile, {
filename: configPath,
})
if (!config || typeof config === "string") {