Skip to content

Commit

Permalink
fix: parseAllJsDoc breaking with < ts 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 6, 2023
1 parent 032794f commit d21e02e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/patch/src/ts/create-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ namespace tsp {
const plugins = preparePluginsFromCompilerOptions(options.plugins);
const pluginCreator = new PluginCreator(plugins, { resolveBaseDir: projectConfig.projectDir ?? process.cwd() });

if (tsp.currentLibrary === 'tsc' && pluginCreator.needsTscJsDocParsing) {
/* Handle JSDoc parsing in v5.3+ */
if (tsp.currentLibrary === 'tsc' && tsShim.JSDocParsingMode && pluginCreator.needsTscJsDocParsing) {
host!.jsDocParsingMode = tsShim.JSDocParsingMode.ParseAll;
}

Expand Down

0 comments on commit d21e02e

Please sign in to comment.