Skip to content

Commit b5372aa

Browse files
committed
module system v3: independant folder for each module + retrocompat v2/v3
1 parent 58369a5 commit b5372aa

File tree

8 files changed

+523
-255
lines changed

8 files changed

+523
-255
lines changed

bin/pm2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,11 @@ commander.command('update')
440440
*/
441441
commander.command('install <module|git:// url>')
442442
.alias('module:install')
443+
.option('--v1', 'install module in v1 manner (do not use it)')
443444
.description('install or update a module and run it forever')
444-
.action(function(plugin_name) {
445+
.action(function(plugin_name, opts) {
446+
if (opts.v1)
447+
commander.v1 = true;
445448
pm2.install(plugin_name, commander);
446449
});
447450

0 commit comments

Comments
 (0)