Optional omission of Typescript entrypoint (#8057)

This commit is contained in:
Max Burke
2023-08-20 01:28:47 -07:00
committed by GitHub
parent 48da238920
commit afafd206a3
3 changed files with 7 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ class TsGenerator : public BaseGenerator {
bool generate() {
generateEnums();
generateStructs();
generateEntry();
if (!parser_.opts.ts_omit_entrypoint) { generateEntry(); }
if (!generateBundle()) return false;
return true;
}