Skip to content

Commit

Permalink
Fix path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Aug 7, 2023
1 parent f462bb6 commit da2660a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export default class Utilities {
continue;
}

const path = path.resolve(schemaPath, entry.name);
const schema = JSON.parse(await fs.readFile(path));
const filePath = path.resolve(schemaPath, entry.name);
const schema = JSON.parse(await fs.readFile(filePath));
const name = entry.name.split('.')[0]; // Use the base name
this.#ajv.addSchema(name, schema);
}
Expand Down

0 comments on commit da2660a

Please sign in to comment.