diff --git a/CHANGELOG.md b/CHANGELOG.md index 22da1782e..6fe3de27b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/tooling/publish-microfrontend/src/index.ts b/src/tooling/publish-microfrontend/src/index.ts index 0963a4ce6..8159417d9 100644 --- a/src/tooling/publish-microfrontend/src/index.ts +++ b/src/tooling/publish-microfrontend/src/index.ts @@ -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'; @@ -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) @@ -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,