You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(parser): normalize tsconfig compiler options for ts-morph
TS 6.0 (bundled in ts-morph@28 via @ts-morph/common@0.29) refuses raw
JSON compilerOptions with string-form enum values like
target: "ESNext", throwing:
target is a string value; tsconfig JSON must be parsed with
parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile
before passing to createProgram
Run compilerOptions through ts.convertCompilerOptionsFromJson before
handing them to ts-morph's Project, so string enums are converted to
their numeric form.
0 commit comments