diff --git a/lib/API/Modules/TAR.js b/lib/API/Modules/TAR.js index 1d010c475..1cd223f88 100644 --- a/lib/API/Modules/TAR.js +++ b/lib/API/Modules/TAR.js @@ -18,7 +18,7 @@ module.exports = { uninstall, start, publish, - package + packager } /** @@ -270,7 +270,7 @@ function getModuleName(module_filepath, cb) { }); } -function package(module_path, target_path, cb) { +function packager(module_path, target_path, cb) { var base_folder = path.dirname(module_path) var module_folder_name = path.basename(module_path) var pkg = require(path.join(module_path, 'package.json')) @@ -316,7 +316,7 @@ function publish(PM2, folder, cb) { Common.logMod(`Starting publishing procedure for ${module_name}@${pkg.version}`) - package(current_path, target_path, (err, res) => { + packager(current_path, target_path, (err, res) => { if (err) { Common.errMod('Can\'t package, exiting') process.exit(1)