From 4ba853fe51b0d0f623921ed025f61cf6665f66f3 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Thu, 12 Oct 2023 13:20:27 -0600 Subject: [PATCH] fix: ignore .d.mts and .d.cts --- src/config/plugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/plugin.ts b/src/config/plugin.ts index 9ccd4fb8e..12be13015 100644 --- a/src/config/plugin.ts +++ b/src/config/plugin.ts @@ -171,7 +171,10 @@ export class Plugin implements IPlugin { const marker = Performance.mark(OCLIF_MARKER_OWNER, `plugin.commandIDs#${this.name}`, {plugin: this.name}) this._debug(`loading IDs from ${this.commandsDir}`) - const patterns = ['**/*.+(js|cjs|mjs|ts|tsx|mts|cts)', '!**/*.+(d.ts|test.ts|test.js|spec.ts|spec.js)?(x)'] + const patterns = [ + '**/*.+(js|cjs|mjs|ts|tsx|mts|cts)', + '!**/*.+(d.ts|test.ts|test.js|spec.ts|spec.js|d.mts|d.cts)?(x)', + ] const ids = sync(patterns, {cwd: this.commandsDir}).map((file) => { const p = parse(file) const topics = p.dir.split('/')