Skip to content

Commit

Permalink
Merge pull request #5680 from juaneth/master
Browse files Browse the repository at this point in the history
Fixed reserved keyword for ES6 Strict Mode when Bundling
  • Loading branch information
Unitech committed Oct 6, 2023
2 parents 41fd475 + bfc41f3 commit 7912239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/API/Modules/TAR.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
uninstall,
start,
publish,
package
packager
}

/**
Expand Down Expand Up @@ -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'))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7912239

Please sign in to comment.