Skip to content

Error is thrown if verbose flag is not set #32

@mems

Description

@mems

Expected Behaviour

Release the extension without error if the flag --verbose is not specified

Actual Behaviour

Doesn't release the extension. The following error is thrown: TypeError: Cannot read properties of undefined (reading 'verbose')"

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Node.js v20.12.2
@adobe/reactor-releaser@v4.0.0-beta.3

Sample Code that illustrates the problem

# In a wordking directory with an extension that can be released
npx @adobe/reactor-releaser --confirm-package-release --verbose

Logs taken while reproducing problem

[REDACTED]/node_modules/@adobe/reactor-releaser/bin/getExtensionPackageFromServer.js:24
  if (argv.verbose) {
           ^
TypeError: Cannot read properties of undefined (reading 'verbose')
    at module.exports ([REDACTED]/node_modules/@adobe/reactor-releaser/bin/getExtensionPackageFromServer.js:24:12)
    at [REDACTED]/node_modules/@adobe/reactor-releaser/bin/index.js:87:46

See f3b974a#r140976383

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions