-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3453 from deltasource/hotfix/scoped-package-support
Hotfix/scoped package support
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,12 +223,14 @@ var Utility = module.exports = { | |
|
||
//pm2 install username/module | ||
else if(canonic_module_name.indexOf('/') !== -1) { | ||
canonic_module_name = canonic_module_name.split('/')[1]; | ||
if (canonic_module_name.charAt(0) !== "@"){ | ||
canonic_module_name = canonic_module_name.split('/')[1]; | ||
} | ||
} | ||
|
||
//pm2 install [email protected] | ||
if(canonic_module_name.indexOf('@') !== -1) { | ||
canonic_module_name = canonic_module_name.split('@')[0]; | ||
//pm2 install @somescope/[email protected] | ||
if(canonic_module_name.lastIndexOf('@') > 0) { | ||
canonic_module_name = canonic_module_name.substr(0,canonic_module_name.lastIndexOf("@")); | ||
} | ||
|
||
//pm2 install module#some-branch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters