Compare commits

..

1 Commits

Author SHA1 Message Date
Ben Phelps
939f5d7c20 fix path.join import 2022-09-06 08:39:25 +03:00

View File

@@ -1,4 +1,4 @@
import { join, path } from "path";
import { join } from "path";
import { existsSync, copyFile, promises as fs } from "fs";
import yaml from "js-yaml";
@@ -19,7 +19,7 @@ export default function checkAndCopyConfig(config) {
export async function getSettings() {
checkAndCopyConfig("settings.yaml");
const settingsYaml = path.join(process.cwd(), "config", "settings.yaml");
const settingsYaml = join(process.cwd(), "config", "settings.yaml");
const fileContents = await fs.readFile(settingsYaml, "utf8");
return yaml.load(fileContents);
}