Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-45399

[javascript-clients] publish from dist folder of migrated packages

XMLWordPrintable

    • Incidents & Support
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None
    • HCC Framework Sprint 54

      The migrated packages (those with source in src/ and compiled output in dist/) were being published from their package root instead of their dist/ folder, which is nx's default. This meant the published package contained source files and the package.json's main, typings, and exports fields pointed to non-existent files, making the packages broken for consumers.

      The fix adds a nx-release-publish target to each migrated package's project.json with packageRoot set to

      {projectRoot}

      /dist, directing nx release publish to publish from the correct directory.

      Slack thread: https://redhat-internal.slack.com/archives/C05KTHJU4R4/p1772037993775789
      PR: https://github.com/RedHatInsights/javascript-clients/pull/432

              rh-ee-chmulder Charles Mulder
              rh-ee-chmulder Charles Mulder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: