We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82de094 commit 2f5a012Copy full SHA for 2f5a012
libs/langchain-scripts/src/migrations/0_1.ts
@@ -37,12 +37,12 @@ async function getEntrypointsFromFile(
37
path.join(packagePath, "src", `${value}.ts`)
38
);
39
const exportedSymbolsMap = newFile.getExportedDeclarations();
40
- const exportedSymbols = Array.from(exportedSymbolsMap.entries()).map(
41
- ([symbol, declarations]) => ({
+ const exportedSymbols = Array.from(exportedSymbolsMap.entries())
+ .filter(([_, declarations]) => declarations.length > 0)
42
+ .map(([symbol, declarations]) => ({
43
kind: declarations[0].getKind(),
44
symbol,
- })
45
- );
+ }));
46
return {
47
entrypoint: key,
48
exportedSymbols,
0 commit comments