Skip to content

Commit 2c86469

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #1094 from NativeScript/fatme/fix-plugin-remove
Fix EISDIR error when the plugin is specified with path to local folder
2 parents 31fe9e7 + 22591fe commit 2c86469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/plugins-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class PluginsService implements IPluginsService {
205205

206206
private getNodeModuleData(module: string): IFuture<INodeModuleData> { // module can be modulePath or moduleName
207207
return (() => {
208-
if(!this.$fs.exists(module).wait()) {
208+
if(!this.$fs.exists(module).wait() || path.basename(module) !== "package.json") {
209209
module = this.getPackageJsonFilePathForModule(module);
210210
}
211211

0 commit comments

Comments
 (0)