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); }