diff --git a/.github/infrastructure.yml b/.github/infrastructure.yml index 21c814c4..92164bfe 100644 --- a/.github/infrastructure.yml +++ b/.github/infrastructure.yml @@ -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) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a94fe70..dfa50709 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -285,7 +285,7 @@ jobs: fail-fast: false matrix: node-version: - - 20 + - 20.5.0 - 19 - 18 - 16 diff --git a/src/plugins/decorators/plugin.ts b/src/plugins/decorators/plugin.ts index 260cc101..3e534fa0 100644 --- a/src/plugins/decorators/plugin.ts +++ b/src/plugins/decorators/plugin.ts @@ -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