Skip to content

Commit

Permalink
fix: don't try to import non-typescript files (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Oct 9, 2020
1 parent 852518a commit 66c80ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typegen/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ const getFsTypeWriter = (generatedPath: string) => (typeName: string, properties

const knownTypes = fs
.readdirSync(generatedPath)
.filter(filename => filename !== 'index.ts')
.filter(filename => filename.endsWith('.ts') && filename !== 'index.ts')
.map(filename => basename(filename, '.ts'))

void writeIfChanged(
Expand Down

0 comments on commit 66c80ab

Please sign in to comment.