Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Aug 7, 2023
1 parent 549efa8 commit 0da2c40
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ export default class Utilities {
* cross-reference use of schemas via ajv's resolution
*/
async #preloadSchemas() {
console.log(import.meta.url);
const schemaDir = await fs.opendir('./schemas');
const schemaPath = path.resolve(
import.meta.url.replace(/^file:/, ''),
'../../schemas',
);
console.log(schemaPath);
const schemaDir = await fs.opendir(schemaPath);
for await (const entry of schemaDir) {
if (!entry.isFile()) {
continue;
Expand Down

0 comments on commit 0da2c40

Please sign in to comment.