Skip to content

Commit

Permalink
fix(plugins): [decorators] decorator check
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Sep 9, 2023
1 parent cb21aa1 commit 978ffe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ branches:
- context: test (16)
- context: test (18)
- context: test (19)
- context: test (20)
- context: test (20.5.0)
- context: typescript (5.0.4)
- context: typescript (5.1.6)
- context: typescript (latest)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 20.5.0
- 19
- 18
- 16
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/decorators/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ const plugin = (options?: tscu.LoadTsconfigOptions): Plugin => {
*/
const source: string = cast(await mlly.getSource(url))

// do nothing if module does contain decorators
// do nothing if module does not contain decorators
DECORATOR_REGEX.lastIndex = 0
if (!DECORATOR_REGEX.test(source)) return null

// transpile module to emit decorator metadata
Expand Down

0 comments on commit 978ffe9

Please sign in to comment.