openfin-cli 4.0.0-alpha.2 → 4.0.0-alpha.3

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 CHANGED
@@ -26,14 +26,13 @@ const yargsParser = yargs(hideBin(process.argv))
26
26
  alias: 'p',
27
27
  type: 'number',
28
28
  description: 'devtools port number',
29
- default: 9090,
30
- // make it devtoolsPort
29
+ defaultDescription: '9090',
31
30
  })
32
31
  .option('runtime-version', {
33
32
  alias: 'r',
34
33
  type: 'string',
35
34
  description: 'runtime version',
36
- default: 'stable',
35
+ defaultDescription: 'stable',
37
36
  })
38
37
  .option('platform', {
39
38
  alias: 't',
@@ -56,8 +55,9 @@ const yargsParser = yargs(hideBin(process.argv))
56
55
  if (argv.config && argv.url) {
57
56
  throw new Error('Cannot use both config and url options at the same time');
58
57
  }
59
- if (argv.url &&
60
- (argv.platform || argv['devtools-port'] !== 9090 || argv['runtime-version'] !== 'stable' || argv.save)) {
58
+ // argv.
59
+ // These options have no effect when not using the URL option
60
+ if (!argv.url && (argv.platform || argv['devtools-port'] || argv['runtime-version'] || argv.save)) {
61
61
  throw new Error('While using the URL option, you cannot use the platform, devtools-port, runtime-version, or save options cannot be used');
62
62
  }
63
63
  return true;
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ if (typeof dns.setDefaultResultOrder === 'function') {
21
21
  }
22
22
  let launchTime;
23
23
  export const openfinCli = (cli) => __awaiter(void 0, void 0, void 0, function* () {
24
- const { config, url, launch, devtoolsPort, runtimeVersion, save, platform } = cli;
24
+ const { config, url, launch, devtoolsPort = 9090, runtimeVersion = 'stable', save, platform } = cli;
25
25
  let manifestUrl = config;
26
26
  let buildConfig;
27
27
  let configObject;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const API_VERSION = '4.0.0-alpha.2';
1
+ export const API_VERSION = '4.0.0-alpha.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfin-cli",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.3",
4
4
  "description": "Supports command line development in the OpenFin environment.",
5
5
  "type": "module",
6
6
  "homepage": "http://www.openfin.co",