• Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.5.0
    • None
    • Dynamic plugins
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Monorepo detection in package-dynamic-plugins CLI command

      The janus-idp CLI command package-dynamic-plugins is designed to work with both monorepos and single plugin projects. This update resolves a bug in the tool’s monorepo detection, which previously caused the tool to fail with the error TypeError: Cannot read properties of undefined (reading 'packages') when run in a single plugin project.
      Show
      = Monorepo detection in package-dynamic-plugins CLI command The janus-idp CLI command package-dynamic-plugins is designed to work with both monorepos and single plugin projects. This update resolves a bug in the tool’s monorepo detection, which previously caused the tool to fail with the error TypeError: Cannot read properties of undefined (reading 'packages') when run in a single plugin project.
    • Bug Fix
    • Done
    • RHDH Dynamic Plugins 3266

      Description of problem:

      Due to an incorrect assumption of the workspaces field the package-dynamic-plugins command does not work in a single plugin project, and will only work in monorepos that have a "workspaces" field set up using an object (for whatever reason):

        "workspaces": {
          "packages": [
            "plugins/*"
          ]
        }
      

      The workspaces field is actually just an array of glob strings.

      When run in a single plugin project, the command throws this error:

      TypeError: Cannot read properties of undefined (reading packages')
      

            [RHIDP-5219] package-dynamic-plugins doesn't work on a single plugin project

            Stan Lewis added a comment -

            Merged, will be in CLI version 1.19.1

            Stan Lewis added a comment - Merged, will be in CLI version 1.19.1

              stlewis_2 Stan Lewis
              stlewis_2 Stan Lewis
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: