Skip to content

Commit

Permalink
Use path to get directory
Browse files Browse the repository at this point in the history
  • Loading branch information
samirsilwal committed Oct 12, 2024
1 parent a90bd8b commit ac56373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function loadConfig(configFilename: string = CONFIG_FILENAME): Prom
validate(loaded);

// Resolve the base path relative to the config file location.
const configFileLocation = filepath.split('/').slice(0, -1).join('/');
const configFileLocation = path.dirname(filepath);
const relativeBasePath = path.join(configFileLocation, loaded.basePath);

const result = {
Expand Down

0 comments on commit ac56373

Please sign in to comment.