Skip to content

Commit 63f413a

Browse files
committed
refactor: make metadata generator internal
1 parent be28e22 commit 63f413a

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
@@ -15,7 +15,6 @@ import metadata from './metadata/index.mjs';
1515
import oramaDb from './orama-db/index.mjs';
1616

1717
export const publicGenerators = {
18-
metadata: metadata,
1918
'json-simple': jsonSimple,
2019
'legacy-html': legacyHtml,
2120
'legacy-html-all': legacyHtmlAll,
@@ -29,9 +28,14 @@ export const publicGenerators = {
2928
'jsx-ast': jsxAst,
3029
};
3130

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

0 commit comments

Comments
 (0)