Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1765

Validation of entrypoints with the `embed-as-dependencies` option doesn't work when run with `npx`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Dynamic Plugins
    • None
    • RHDH P&B plugins 3255

      Description of problem:

      Wen run with `npx` the `janus-idp/cli` `export-dynamic-plugin --embed-as-dependencies` command fails at validating that the required entrypoints are there.
      This is due to the fact that `npx` runs the command from some cache folder, and not from the source repository context, so that `ts-node` is not registered and the typescript `backstage` dependencies present in the validated plugins sources cannot be imported. 

              dfestal David Festal
              dfestal David Festal
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: