Add support for APF 13 exports in @nrwl/angular:ng-packagr-lite
See original GitHub issue- I’d be willing to implement this feature (contributing guide)
Description
Currently, if you run the ng-packagr-lite
executor, it doesn’t generate entries for the exports
field in package.json
. This does not conform to the new APF 13 format, which ng-packagr
is following.
Interestingly, I found this in the executor code:
https://github.com/nrwl/nx/blob/b6617105f32ba61e1e40f6ff9f96fc0ba333c7fb/packages/angular/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.ts#L6
So it seems like you’re explicitly removing the generated exports, although I didn’t find any code for this statement.
Motivation
I need to export some styles, and am getting errors because of missing exports. But it would also just be best to follow the APF specs.
Suggested Implementation
However ng-packagr
does it originally.
Alternate Implementations
N/A.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Using Tailwind CSS with Angular projects
The Nx Angular plugin provides support for Tailwind CSS v2 and v3. ... An option --add-tailwind for the @nrwl/angular:app generator to create an...
Read more >Creating Secondary Entry Points for your Angular Library
Implement secondary entry points · 1. Place the folders for secondary entry points directly under the library folder. · 2. Create additional ...
Read more >What's new in Angular v13! - Nx Blog
The Angular Package Format (APF) is a specification of the structure and format of the Angular framework packages and it is also the...
Read more >Angular 13 in Depth - Sébastien Dubois
The Angular team has also updated the APF to support Node Package ... 13 now uses RxJS 7.4 by default for applications created...
Read more >Angular v13 Jest with nx test - SyntaxError: Cannot use ...
From what I've found online, this seems like a common issue to projects using Jest and upgrading to Angular 13. Our project doesn't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for clearing this up and pointing me in the right direction! ❤️
I’m closing this since the doubt is now covered. For future reference the
@nrwl/angular:ng-packagr-lite
executors is for buildable libraries and the@nrwl/angular:package
executor is for publishable libraries.