diff --git a/lib/appdir.js b/lib/appdir.js index 3453b4a..5518ed4 100644 --- a/lib/appdir.js +++ b/lib/appdir.js @@ -194,7 +194,7 @@ function _findLibraries (appdir, appbin, appexs, disklibs) { const exe = path.join(appdir, appbin); const o = { - exe: exe, + exe, lib: exe, libs: disklibs }; diff --git a/lib/config.js b/lib/config.js index 2a0648a..f0355f5 100644 --- a/lib/config.js +++ b/lib/config.js @@ -291,10 +291,10 @@ function compile (conf) { } module.exports = { - compile: compile, - fromOptions: fromOptions, - fromState: fromState, - helpMessage: helpMessage, - parse: parse, - shortHelpMessage: shortHelpMessage + compile, + fromOptions, + fromState, + helpMessage, + parse, + shortHelpMessage }; diff --git a/lib/fchk.js b/lib/fchk.js index 7e00b69..5ea1f70 100644 --- a/lib/fchk.js +++ b/lib/fchk.js @@ -2,7 +2,7 @@ module.exports = function (args, types) { if (args.length !== types.length) { throw new Error('Incorrect arguments count'); } - const stack = Array(...args).reverse(); + const stack = [...args].reverse(); for (const t of types) { const arg = typeof stack.pop(); if (t && arg !== t) { diff --git a/lib/tools.js b/lib/tools.js index 0de10ff..913b890 100644 --- a/lib/tools.js +++ b/lib/tools.js @@ -55,7 +55,7 @@ async function execProgram (bin, arg, opt) { resolve({ stdout: _out.toString(), stderr: _err.toString(), - code: code + code }); }); }); @@ -185,11 +185,11 @@ async function zip (cwd, ofile, src) { if (use7zip) { const zipFile = ofile + '.zip'; const args = ['a', zipFile, src]; - await execProgram(getTool('7z'), args, { cwd: cwd }); + await execProgram(getTool('7z'), args, { cwd }); await renameAsync(zipFile, ofile); } else { const args = ['-qry', ofile, src]; - await execProgram(getTool('zip'), args, { cwd: cwd }); + await execProgram(getTool('zip'), args, { cwd }); } }