Skip to content

Commit

Permalink
fix: remove deprecated decorator passing tsconfig path hooks
Browse files Browse the repository at this point in the history
Decorators are now placed on `modifiers` on TypeScript's syntax trees.
Passing decorators separately has been deprecated since v4.8 and removed
completely in v5.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-8.html#decorators-are-placed-on-modifiers-on-typescripts-syntax-trees
microsoft/TypeScript#49089
  • Loading branch information
ttshivers committed Apr 15, 2023
1 parent fd0a5a3 commit 521dc06
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/compiler/hooks/tsconfig-paths.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export function tsconfigPathsBeforeHookFactory(
)
: tsBinary.factory.updateImportDeclaration(
node,
node.decorators,
node.modifiers,
node.importClause,
moduleSpecifier,
Expand All @@ -75,7 +74,6 @@ export function tsconfigPathsBeforeHookFactory(
)
: tsBinary.factory.updateExportDeclaration(
node,
node.decorators,
node.modifiers,
node.isTypeOnly,
node.exportClause,
Expand Down

0 comments on commit 521dc06

Please sign in to comment.