Skip to content

Commit b7844fa

Browse files
committed
fix(integration): resolve TS error in module tests
1 parent 4c8628c commit b7844fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/module-tests/find-all-modules.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function findAllEntryPointsAndExportedModules(packagePath: string)
4545
function scanExportsForModules(sf: ts.SourceFile): string[] {
4646
const moduleExports: string[] = [];
4747
const visit = (node: ts.Node) => {
48-
if (ts.isExportDeclaration(node) && ts.isNamedExports(node.exportClause)) {
48+
if (ts.isExportDeclaration(node) && node.exportClause && ts.isNamedExports(node.exportClause)) {
4949
moduleExports.push(
5050
...node.exportClause.elements
5151
.filter(e => e.name.text.endsWith('Module'))

0 commit comments

Comments
 (0)