diff --git a/src/config/plugin.ts b/src/config/plugin.ts index 736abffcc..681d18e97 100644 --- a/src/config/plugin.ts +++ b/src/config/plugin.ts @@ -298,6 +298,7 @@ export class Plugin implements IPlugin { } private async getCommandsDir(): Promise { + if (this.commandsDir) return this.commandsDir this.commandsDir = await tsPath(this.root, this.pjson.oclif.commands, this) return this.commandsDir } diff --git a/test/integration/sf.e2e.ts b/test/integration/sf.e2e.ts index 50ab4d6ef..529941670 100644 --- a/test/integration/sf.e2e.ts +++ b/test/integration/sf.e2e.ts @@ -3,8 +3,7 @@ import {arch} from 'node:os' import {Executor, setup} from './util' -import StripAnsi = require('strip-ansi') -const stripAnsi: typeof StripAnsi = require('strip-ansi') +const stripAnsi = require('strip-ansi') const chalk = require('chalk') chalk.level = 0 diff --git a/test/integration/util.ts b/test/integration/util.ts index fc2c3066e..df0281694 100644 --- a/test/integration/util.ts +++ b/test/integration/util.ts @@ -186,9 +186,12 @@ export async function setup(testFile: string, options: SetupOptions): Promise