Skip to content

Commit 41ac351

Browse files
committed
Output ConvertedSyntaxKind enum when --to-json flag is used
1 parent 26668bb commit 41ac351

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {ImportSummary, TranspilerBase} from './base';
88
import DeclarationTranspiler from './declaration';
99
import {FacadeConverter} from './facade_converter';
1010
import {convertAST} from './json/conversions';
11+
import {ConvertedSyntaxKind} from './json/converted_syntax_kinds';
1112
import * as merge from './merge';
1213
import mkdirP from './mkdirp';
1314
import ModuleTranspiler from './module';
@@ -197,6 +198,10 @@ export class Transpiler {
197198
}
198199
});
199200
this.checkForErrors(program);
201+
202+
if (this.options.toJSON) {
203+
paths.set('converted_syntax_kinds.ts', JSON.stringify(ConvertedSyntaxKind, undefined, 2));
204+
}
200205
return paths;
201206
}
202207

0 commit comments

Comments
 (0)