Skip to content

Commit

Permalink
Merge pull request #12 from sevapp/artpani/tuner2
Browse files Browse the repository at this point in the history
final fix
  • Loading branch information
artpani4 authored Aug 19, 2023
2 parents 45b742f + b0b11d8 commit 41f76b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ const fromAbsolutePath = (path: string) => {
const fromConfigDir = (path: string) => {
return async () => {
const configDir = await findDirectoryInCWD('config');
console.log(`ConfigDir: ${configDir}`);

if (configDir === null) {
throw new Error('config directory not found');
}
console.log(path);
console.log(resolve(configDir, path));

const module = await import(
`file:///${resolve(configDir, path)}`
);
Expand Down

0 comments on commit 41f76b2

Please sign in to comment.