@bghitcode/bghitapp 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import { InvalidArgumentError, program as program$1, Option } from 'commander';
|
|
|
20
20
|
import fs$1 from 'fs';
|
|
21
21
|
|
|
22
22
|
var name = "@bghitcode/bghitapp";
|
|
23
|
-
var version = "1.1.
|
|
23
|
+
var version = "1.1.6";
|
|
24
24
|
var description = "🤱🏻 Turn any webpage into a desktop app with one command — by BghitCode.";
|
|
25
25
|
var engines = {
|
|
26
26
|
node: ">=18.0.0"
|
|
@@ -2927,20 +2927,7 @@ function getCliProgram() {
|
|
|
2927
2927
|
.default(DEFAULT_BGHITAPP_OPTIONS.autoSplash))
|
|
2928
2928
|
.addOption(new Option('--offline', 'Enable offline fallback page')
|
|
2929
2929
|
.default(DEFAULT_BGHITAPP_OPTIONS.offline))
|
|
2930
|
-
.version(packageJson.version, '-v, --version')
|
|
2931
|
-
.configureHelp({
|
|
2932
|
-
sortSubcommands: true,
|
|
2933
|
-
optionTerm: (option) => {
|
|
2934
|
-
if (option.flags === '-v, --version' || option.flags === '-h, --help')
|
|
2935
|
-
return '';
|
|
2936
|
-
return option.flags;
|
|
2937
|
-
},
|
|
2938
|
-
optionDescription: (option) => {
|
|
2939
|
-
if (option.flags === '-v, --version' || option.flags === '-h, --help')
|
|
2940
|
-
return '';
|
|
2941
|
-
return option.description;
|
|
2942
|
-
},
|
|
2943
|
-
});
|
|
2930
|
+
.version(packageJson.version, '-v, --version');
|
|
2944
2931
|
}
|
|
2945
2932
|
|
|
2946
2933
|
const program = getCliProgram();
|