Skip to content

Commit

Permalink
Respect dependency.directory if such is already calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatme Havaluova authored and Fatme Havaluova committed Aug 21, 2015
1 parent 88cc5de commit e443fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/plugins-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class PluginsService implements IPluginsService {
let pluginData: any = {};
pluginData.name = cacheData.name;
pluginData.version = cacheData.version;
pluginData.fullPath = path.dirname(this.getPackageJsonFilePathForModule(cacheData.name));
pluginData.fullPath = cacheData.directory || path.dirname(this.getPackageJsonFilePathForModule(cacheData.name));
pluginData.isPlugin = !!cacheData.nativescript;
pluginData.pluginPlatformsFolderPath = (platform: string) => path.join(pluginData.fullPath, "platforms", platform);

Expand Down

0 comments on commit e443fc4

Please sign in to comment.