Skip to content

Commit

Permalink
Merge pull request #26 from heikomat/feature/fix_target_folder_name
Browse files Browse the repository at this point in the history
πŸ› fix target folder name of linked modules
  • Loading branch information
Sebastian Meier authored Dec 11, 2017
2 parents 221126a + 927f450 commit 43f3609
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ModuleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ const Promise = require('bluebird');
class ModuleInfo {

constructor(folderName, name, version, dependencies, postinstall) {
this._folderName = folderName;
this._realFolderName = folderName;
this._folderName = name;
this._name = name;
this._version = version;
this._dependencies = dependencies;
this._postinstall = postinstall;
this._isScoped = false;

if (name.charAt(0) === '@') {
this._folderName = path.join(name.split('/')[0], folderName);
const moduleNameParts = name.split('/');
this._folderName = path.join(moduleNameParts[0], moduleNameParts[1]);
this._isScoped = true;
}
}
Expand Down

0 comments on commit 43f3609

Please sign in to comment.