Skip to content

Commit 7912239

Browse files
authoredOct 6, 2023
Merge pull request #5680 from juaneth/master
Fixed reserved keyword for ES6 Strict Mode when Bundling
2 parents 41fd475 + bfc41f3 commit 7912239

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lib/API/Modules/TAR.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
uninstall,
1919
start,
2020
publish,
21-
package
21+
packager
2222
}
2323

2424
/**
@@ -270,7 +270,7 @@ function getModuleName(module_filepath, cb) {
270270
});
271271
}
272272

273-
function package(module_path, target_path, cb) {
273+
function packager(module_path, target_path, cb) {
274274
var base_folder = path.dirname(module_path)
275275
var module_folder_name = path.basename(module_path)
276276
var pkg = require(path.join(module_path, 'package.json'))
@@ -316,7 +316,7 @@ function publish(PM2, folder, cb) {
316316

317317
Common.logMod(`Starting publishing procedure for ${module_name}@${pkg.version}`)
318318

319-
package(current_path, target_path, (err, res) => {
319+
packager(current_path, target_path, (err, res) => {
320320
if (err) {
321321
Common.errMod('Can\'t package, exiting')
322322
process.exit(1)

0 commit comments

Comments
 (0)
Please sign in to comment.