Skip to content

Commit 2f5a012

Browse files
authored
scripts[minor]:Some symbols have empty declarations (#4993)
* Some symbols have empty declarations * format
1 parent 82de094 commit 2f5a012

File tree

1 file changed

+4
-4
lines changed
  • libs/langchain-scripts/src/migrations

1 file changed

+4
-4
lines changed

libs/langchain-scripts/src/migrations/0_1.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ async function getEntrypointsFromFile(
3737
path.join(packagePath, "src", `${value}.ts`)
3838
);
3939
const exportedSymbolsMap = newFile.getExportedDeclarations();
40-
const exportedSymbols = Array.from(exportedSymbolsMap.entries()).map(
41-
([symbol, declarations]) => ({
40+
const exportedSymbols = Array.from(exportedSymbolsMap.entries())
41+
.filter(([_, declarations]) => declarations.length > 0)
42+
.map(([symbol, declarations]) => ({
4243
kind: declarations[0].getKind(),
4344
symbol,
44-
})
45-
);
45+
}));
4646
return {
4747
entrypoint: key,
4848
exportedSymbols,

0 commit comments

Comments
 (0)