u2a 3.4.7 → 3.4.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u2a",
3
- "version": "3.4.7",
3
+ "version": "3.4.9",
4
4
  "description": "URL to App - Turn any URL into a desktop application",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -22,13 +22,6 @@ const { checkNotRoot } = require('./utils/noroot');
22
22
  .version(version)
23
23
  .option('--allowroot', 'Allow running the application as root/administrator');
24
24
 
25
- const parsed = program.parse(process.argv);
26
- const options = parsed.opts();
27
-
28
- await checkNotRoot(options.allowroot);
29
-
30
- setupConfig();
31
-
32
25
  program
33
26
  .command('create <url>')
34
27
  .description('Create a new application from a URL')
@@ -61,4 +54,11 @@ const { checkNotRoot } = require('./utils/noroot');
61
54
  if (process.argv.length <= 2) {
62
55
  program.help();
63
56
  }
57
+
58
+ const parsed = program.parse(process.argv);
59
+ const options = parsed.opts();
60
+
61
+ await checkNotRoot(options.allowroot);
62
+
63
+ setupConfig();
64
64
  })();