-
fix(js): generate pacakge.json for non-buildable nest and expo libs (#29891)
发布于
2025-02-06 15:47:05 +00:00 This PR fixes a couple of issues for TS solution setup:
- Expo library should generate with correct
package.jsonfile (e.g.
exportsmaps either to source or dist). See spec
file. - Nest library should generate
package.jsonwhen non-buildable. See
spec
file.
Notes:
- Also removed an unsupported
standaloneConfigoption from
@nx/nest:libgenerator. 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.jsonfiles depending on
whether they are build or non-buildable.Related Issue(s)
Fixes #
(cherry picked from commit
8bd0bcdd97)下载附件
- Expo library should generate with correct