Skip to content

Commit 4c7138b

Browse files
committed
fix(jsdocs): disable jiti fs cache and module cache to avoid race conditions
1 parent ae3ca7a commit 4c7138b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/generators/jsdocs.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ export const jsdocs = defineGenerator({
1414
const { loadSchema } = await import("untyped/loader");
1515
const fullPath = resolvePath(args.src, { url, dir: config.dir });
1616

17-
const schema = await loadSchema(fullPath);
17+
const schema = await loadSchema(fullPath, {
18+
jiti: {
19+
// TODO: untyped should be able to reuse same jiti instance to avoid race conditions
20+
fsCache: false,
21+
moduleCache: false,
22+
},
23+
});
1824

1925
return {
2026
contents: _render(

0 commit comments

Comments
 (0)