We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 31fe9e7 + 22591fe commit 2c86469Copy full SHA for 2c86469
lib/services/plugins-service.ts
@@ -205,7 +205,7 @@ export class PluginsService implements IPluginsService {
205
206
private getNodeModuleData(module: string): IFuture<INodeModuleData> { // module can be modulePath or moduleName
207
return (() => {
208
- if(!this.$fs.exists(module).wait()) {
+ if(!this.$fs.exists(module).wait() || path.basename(module) !== "package.json") {
209
module = this.getPackageJsonFilePathForModule(module);
210
}
211
0 commit comments