From dde0f0937b406b080425aeed1850b5724c6a0cdf Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Mon, 5 Feb 2018 23:26:49 -0800 Subject: [PATCH] fix: fix return when no globby --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 9f1af068..ab7a1f1d 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -217,7 +217,7 @@ export class Plugin implements IPlugin { globby = require('globby') } catch { debug('not loading plugins, globby not found') - return {} as any + return [] } debug(`loading IDs from ${this.commandsDir}`) const ids = globby.sync(['**/*.+(js|ts)', '!**/*.+(d.ts|test.ts|test.js)'], {cwd: this.commandsDir})