Skip to content

Commit

Permalink
fix(jsdocs): disable jiti fs cache and module cache to avoid race con…
Browse files Browse the repository at this point in the history
…ditions
pi0 committed Oct 9, 2024

Verified

This commit was signed with the committer’s verified signature.
Kocal Hugo Alliaume
1 parent ae3ca7a commit 4c7138b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/generators/jsdocs.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,13 @@ export const jsdocs = defineGenerator({
const { loadSchema } = await import("untyped/loader");
const fullPath = resolvePath(args.src, { url, dir: config.dir });

const schema = await loadSchema(fullPath);
const schema = await loadSchema(fullPath, {
jiti: {
// TODO: untyped should be able to reuse same jiti instance to avoid race conditions
fsCache: false,
moduleCache: false,
},
});

return {
contents: _render(

0 comments on commit 4c7138b

Please sign in to comment.