Skip to content

Commit

Permalink
Merge pull request #452 from recruit-tech/experimental_fix_gen_schema
Browse files Browse the repository at this point in the history
[typed] experimental fixed: use TJS.getProgramFromSource insteadof ts.createProgram
  • Loading branch information
yosuke-furukawa authored Aug 23, 2022
2 parents 64efb18 + 988e713 commit 139ead4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typed/src/generate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function generateSchema(fileNames, meta): Spec[] {
};
host.getSourceFileByPath = undefined;

const program = ts.createProgram(fileNames, compilerOptions, host);
const program = TJS.getProgramFromFiles(fileNames, compilerOptions);

const generator = TJS.buildGenerator(program as unknown as TJS.Program, settings);
return meta.map(m => {
Expand Down

0 comments on commit 139ead4

Please sign in to comment.