Skip to content

Commit

Permalink
fix path.join import
Browse files Browse the repository at this point in the history
  • Loading branch information
benphelps committed Sep 6, 2022
1 parent cf39395 commit 939f5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/config.js
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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);
}

0 comments on commit 939f5d7

Please sign in to comment.