mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Merge pull request #4767 from ykolbin/fix_tarball_module_name_v2
fix: backward compatibility fix for tarball modules
This commit is contained in:
commit
39286aba01
@ -39,7 +39,7 @@ Modularizer.install = function (CLI, module_name, opts, cb) {
|
||||
Common.logMod(`Installing local NPM module`);
|
||||
return NPM.localStart(CLI, opts, cb)
|
||||
}
|
||||
else if (opts.tarball || /^[a-z_\.-]+tar\.gz$/ig.test(module_name)) {
|
||||
else if (opts.tarball || /\.tar\.gz$/i.test(module_name)) {
|
||||
Common.logMod(`Installing TAR module`);
|
||||
TAR.install(CLI, module_name, opts, cb)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user