From 22591feb6bbc6b799b96b8b5c0f19ee303ab8e95 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Thu, 22 Oct 2015 11:31:05 +0300 Subject: [PATCH] Fix EISDIR error when the plugin is specified with path to local folder --- lib/services/plugins-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/plugins-service.ts b/lib/services/plugins-service.ts index 90314c499f..f8daa6ff05 100644 --- a/lib/services/plugins-service.ts +++ b/lib/services/plugins-service.ts @@ -205,7 +205,7 @@ export class PluginsService implements IPluginsService { private getNodeModuleData(module: string): IFuture { // module can be modulePath or moduleName return (() => { - if(!this.$fs.exists(module).wait()) { + if(!this.$fs.exists(module).wait() || path.basename(module) !== "package.json") { module = this.getPackageJsonFilePathForModule(module); }