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,
tsc
no more parsesJSDocComment
s. Therefore, Therefore,typia
and@nestia/core
also cannot utilize thoseJSDocComment
related features too, especially "Comment Tags" and "JSON schema generator".However, in relation to this, the upgrade of
ts-patch
continues to be delayed, and I still don't know how long the delay would be continue. Furthermore, there're sometypia
/nestia
users urging to resolve thepeerDependencies
oftypia
/nestia
that blocking the TypeScript v5.3 update. Therefore, before thets-patch
being prepared, I've decoded to providetypia
's own solution for a while. It is the new CLI commandnpx typia patch
, andnestia
also adapts it (npx nestia setup
command performs it).Also, if the
defaultJSDocParsingMode
value not being patched,typia
will 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
/nestia
users 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-patch
being updated, this CLI command would be disabled immediately, if the installedts-patch
version is the latest one.Related issues:
npx typia patch
for hackingdefaultJSDocParsingMode
value typia#883defaultJSDocParsingMode
of TypeScript v5.3 nonara/ts-patch#134