发布

  • fix(js): generate pacakge.json for non-buildable nest and expo libs (#29891)

    frostbyte_neo 发布于 2025-02-06 15:47:05 +00:00

    This PR fixes a couple of issues for TS solution setup:

    1. Expo library should generate with correct package.json file (e.g.
      exports maps either to source or dist). See spec
      file
      .
    2. Nest library should generate package.json when non-buildable. See
      spec
      file
      .

    Notes:

    • Also removed an unsupported standaloneConfig option from
      @nx/nest:lib generator. This was removed a long time ago in other
      generators.
    • Expo lib generator isn't crystalized when using Rollup for build. This
      is a separate issue and we'll handle it in another task.

    Current Behavior

    • Non-buildable Expo libs generate without exports
    • Buildable Expo libs fail to generate due to error
    • Non-buildable Nest libs do not generate package.json

    Expected Behavior

    Expo and Nest libs generate correct package.json files depending on
    whether they are build or non-buildable.

    Related Issue(s)

    Fixes #

    (cherry picked from commit 8bd0bcdd97)

    下载附件