diff --git a/lib/utilities.js b/lib/utilities.js index dda1679..320af4a 100644 --- a/lib/utilities.js +++ b/lib/utilities.js @@ -54,12 +54,12 @@ export default class Utilities { ); const schemaDir = await fs.opendir(schemaPath); for await (const entry of schemaDir) { - console.log(entry); if (!entry.isFile()) { continue; } - const schema = JSON.parse(await fs.readFile(entry.path)); + const path = path.resolve(schemaPath, entry.name); + const schema = JSON.parse(await fs.readFile(path)); const name = entry.name.split('.')[0]; // Use the base name this.#ajv.addSchema(name, schema); }