New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library with secondary entry points only #1655
Comments
Currently challenged by this issue. Is it possible to have the feature included? |
Please is there a temporary workaround for this type of issue (as described by @klemenoslaj ) using ng-packagr? Thanks for the help! |
What's the problem here, exactly? |
Last time I tried having empty primary entry-point the build failed (worked after exporting some fake variable). I did not try it since, but can try again later today with latest version. |
@klemenoslaj ah, I see. I can't think of any changes in this area, so I expect that to still behave the same. As you said, exporting a dummy could be a workaround. |
Yes, that's what I currently do. It is a bit awkward tho :) |
Just to add a note, we already have an undocumented support for empty "secondary entry points", which allows us to have a library that skips "one level" in the sub-package path:
Notice the missing This feature would be similar to that, if official support is added for such a feature, we should probably deal with these features in the same MR. |
It is a fairly common issue from monorepo structures. Ended on that few weeks ago, would it make sense to use this feature instead of having package.json everywhere? |
We can't use the subpath pattern because we have more data in our secondary entry point
|
Just add
Should works as expected ;) |
ng-packagr/ng-packagr#1655 辅助入口2大文件 index.ts ng-package.json
I use this in the root // public-api.ts is required by ng-packagr and cannot be empty.
const DO_NOT_IMPORT = 'Do not import from @myorg/mylib; Submodules must be imported directly.';
export default DO_NOT_IMPORT; But otherwise, same fix. |
Would you consider this as a best practice, using the |
Type of Issue
Description
Would it be good idea for
ng-packagr
to support a library consisting of secondary points alone?Something like
@angular/material
is doing.How To Reproduce
n/a
Expected Behaviour
@angular/material
is a library that inspires a lot of other libraries, I am sure. Would it not be a good idea to support their structure?Example:
Could result in
@org/library/component-a
and@org/library/component-b
.Version Information
n/a
The text was updated successfully, but these errors were encountered: