-
Notifications
You must be signed in to change notification settings - Fork 17
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
Package is not formatted according to Angular Package Format 4.0 Spec #9
Comments
@steveblue Do you currently have problems using |
@steveblue we will migrate to the package format once problems occur. |
@vknabel The package spec is there to ensure a contract between library developers and Angular. I couldn't import into my app as-is because it doesnt conform to the Package Spec, which would make your package compatible with Closure Compiler. In the future when ABC is released your library will not work with ABC. It already doesnt work with Closure Compiler. Its pretty easy to make it compatible, not sure why you are resisting this change. |
This is primary because your tsconfig is incorrectly formatted. You should be using something like this: ES2015
ES5
|
@steveblue I am sorry for closing this issue, but I didn‘t know of the closure compiler compatibility problems or any benefits adopting the package format. |
Using the package spec is only one step to make this compatible with CC, but it is a huge step. Other things that need to happen:
This would mean users of the pipe need to package marked on their own, but that is a good thing because now the pipe is bundler agnostic. To make TS happy, you could do the following instead:
CC has crazy optimizations that it does to a codebase. It mangles to the nth degree, but CC doesn't mangle strings. Since marked has to be an external script, CC cannot mangle any calls to methods on marked, but it tries to anyways, unless the method is called using bracket syntax.
I could submit this as a PR, but the change required that removes the marked import is a big change. |
the easiest way to comply with the Angular Package specification (and hence avoid any possible problems arising from differing to it) is to use https://github.com/dherges/ng-packagr |
This package is not formatted according to Package Format 4.0. Please update this package to follow the spec.
https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview
The text was updated successfully, but these errors were encountered: