Skip to content

Commit

Permalink
Fixed publish microfrontend
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jan 27, 2025
1 parent 56c8d61 commit bb2d9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Piral Changelog

## 1.8.1 (tbd)

- Fixed build issue in `publish-microfrontend`

## 1.8.0 (January 26, 2025)

- Fixed pinning of dependencies in `piral-configs` (#733)
Expand Down
7 changes: 4 additions & 3 deletions src/tooling/publish-microfrontend/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import * as yargs from 'yargs';
import yargs from 'yargs';
import rc from 'rc';
import { fromKeys, publishModeKeys } from 'piral-cli/src/helpers';
import { basename } from 'path';
Expand All @@ -22,7 +22,7 @@ const defaultArgs = rc('microfrontend', {
interactive: false,
});

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

async function run() {
const args = await y.argv;
const {
cert,
source,
Expand Down

0 comments on commit bb2d9af

Please sign in to comment.