question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for APF 13 exports in @nrwl/angular:ng-packagr-lite

See original GitHub issue

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: image 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AndyClausencommented, Apr 7, 2022

Thanks for clearing this up and pointing me in the right direction! ❤️

1reaction
leosvelperezcommented, Apr 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found