Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

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 May 17, 2023
1 parent b6e7830 commit 1d268e6
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 1d268e6

Please sign in to comment.