Skip to content

Commit bb2d9af

Browse files
committed
Fixed publish microfrontend
1 parent 56c8d61 commit bb2d9af

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Piral Changelog
22

3+
## 1.8.1 (tbd)
4+
5+
- Fixed build issue in `publish-microfrontend`
6+
37
## 1.8.0 (January 26, 2025)
48

59
- Fixed pinning of dependencies in `piral-configs` (#733)

src/tooling/publish-microfrontend/src/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs';
3+
import yargs from 'yargs';
44
import rc from 'rc';
55
import { fromKeys, publishModeKeys } from 'piral-cli/src/helpers';
66
import { basename } from 'path';
@@ -22,7 +22,7 @@ const defaultArgs = rc('microfrontend', {
2222
interactive: false,
2323
});
2424

25-
const args = yargs
25+
const y = yargs(process.argv.slice(2), current)
2626
.string('source')
2727
.describe('source', 'Sets the source of either the previously packed *.tgz bundle or the directory to publish.')
2828
.default('source', current)
@@ -53,9 +53,10 @@ const args = yargs
5353
.default('headers', defaultArgs.headers)
5454
.boolean('interactive')
5555
.describe('interactive', 'Defines if authorization tokens can be retrieved interactively.')
56-
.default('interactive', defaultArgs.interactive).argv;
56+
.default('interactive', defaultArgs.interactive);
5757

5858
async function run() {
59+
const args = await y.argv;
5960
const {
6061
cert,
6162
source,

0 commit comments

Comments
 (0)