Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed reserved keyword for ES6 Strict Mode when Bundling #5680

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/API/Modules/TAR.js
Original file line number Diff line number Diff line change
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