Skip to content

Commit cdadc03

Browse files
committed
refactor: make metadata generator internal
1 parent 5a53252 commit cdadc03

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/generators/index.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import llmsTxt from './llms-txt/index.mjs';
1414
import metadata from './metadata/index.mjs';
1515

1616
export const publicGenerators = {
17-
metadata: metadata,
1817
'json-simple': jsonSimple,
1918
'legacy-html': legacyHtml,
2019
'legacy-html-all': legacyHtmlAll,
@@ -27,9 +26,14 @@ export const publicGenerators = {
2726
'llms-txt': llmsTxt,
2827
};
2928

29+
// These are a bit special: we don't want them to run unless needed,
30+
// and we also don't want them publicly accessible via the CLI.
31+
const internalGenerators = {
32+
metadata,
33+
'ast-js': astJs,
34+
};
35+
3036
export const allGenerators = {
3137
...publicGenerators,
32-
// This one is a little special since we don't want it to run unless we need
33-
// it and we also don't want it to be publicly accessible through the CLI.
34-
'ast-js': astJs,
38+
...internalGenerators,
3539
};

0 commit comments

Comments
 (0)