Adapt new cli command npx typia patch.
#696
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since TypeScript v5.3 update,
tscno more parsesJSDocComments. Therefore, Therefore,typiaand@nestia/corealso cannot utilize thoseJSDocCommentrelated features too, especially "Comment Tags" and "JSON schema generator".However, in relation to this, the upgrade of
ts-patchcontinues to be delayed, and I still don't know how long the delay would be continue. Furthermore, there're sometypia/nestiausers urging to resolve thepeerDependenciesoftypia/nestiathat blocking the TypeScript v5.3 update. Therefore, before thets-patchbeing prepared, I've decoded to providetypia's own solution for a while. It is the new CLI commandnpx typia patch, andnestiaalso adapts it (npx nestia setupcommand performs it).Also, if the
defaultJSDocParsingModevalue not being patched,typiawill generate an warning message of TypeScript compiler API. For reference, as it is an warning message, it does not interrupt the TypeScript compilation like the compilation error case. If there're sometypia/nestiausers never using "Comment Tags" or "JSON schema generator" at all, they don't need to run the CLI command. This is not mandatory command, but just optional command.Of course, when
ts-patchbeing updated, this CLI command would be disabled immediately, if the installedts-patchversion is the latest one.Related issues:
npx typia patchfor hackingdefaultJSDocParsingModevalue typia#883defaultJSDocParsingModeof TypeScript v5.3 nonara/ts-patch#134