publish-microfrontend 1.8.0-beta.7777 → 1.8.1-beta.7789

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 (3) hide show
  1. package/lib/index.js +283 -281
  2. package/package.json +2 -2
  3. package/src/index.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publish-microfrontend",
3
- "version": "1.8.0-beta.7777",
3
+ "version": "1.8.1-beta.7789",
4
4
  "description": "A CLI for publishing micro frontends to a feed service.",
5
5
  "keywords": [
6
6
  "modules",
@@ -68,5 +68,5 @@
68
68
  "typescript": "^5",
69
69
  "yargs": "^17"
70
70
  },
71
- "gitHead": "fb360865987745dcfa7d392a7072c7f303007526"
71
+ "gitHead": "bb2d9af6adf122768ccb368ade4b6dddcc8331a7"
72
72
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import * as yargs from 'yargs';
3
+ import yargs from 'yargs';
4
4
  import rc from 'rc';
5
5
  import { fromKeys, publishModeKeys } from 'piral-cli/src/helpers';
6
6
  import { basename } from 'path';
@@ -22,7 +22,7 @@ const defaultArgs = rc('microfrontend', {
22
22
  interactive: false,
23
23
  });
24
24
 
25
- const args = yargs
25
+ const y = yargs(process.argv.slice(2), current)
26
26
  .string('source')
27
27
  .describe('source', 'Sets the source of either the previously packed *.tgz bundle or the directory to publish.')
28
28
  .default('source', current)
@@ -53,9 +53,10 @@ const args = yargs
53
53
  .default('headers', defaultArgs.headers)
54
54
  .boolean('interactive')
55
55
  .describe('interactive', 'Defines if authorization tokens can be retrieved interactively.')
56
- .default('interactive', defaultArgs.interactive).argv;
56
+ .default('interactive', defaultArgs.interactive);
57
57
 
58
58
  async function run() {
59
+ const args = await y.argv;
59
60
  const {
60
61
  cert,
61
62
  source,