[TS] Don't generate self-imports with --ts-flat-file (#7340)

The logic to manage generating typescript in a single file was
generating self imports and unused local names, which triggered some
linters.

This resolves #7191
This commit is contained in:
James Kuszmaul
2022-06-14 17:51:12 -05:00
committed by GitHub
parent 0cc1aeb8ca
commit 42acdb63c3
2 changed files with 53 additions and 18 deletions

View File

@@ -81,6 +81,7 @@ def flatbuffer_ts_library(
],
"module": "commonjs",
"moduleResolution": "node",
"noUnusedLocals": True,
"strict": True,
"types": ["node"],
},