-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Comment regarding API Extractor #13
Comments
Hi @octogonz and thanks for reaching out. What I notice right away when browsing the repo is this: Why? I use But I will give AE another shot once I find some time to play around with it and report back here :-) |
I agree that intuitively, you should just be able to drop in whatever compiler you like as a peer dependency. However, API Extractor doesn't just run For this reason, API Extractor requires a specific compiler version that has been tested and is known to work. The aim is for it to be the most recent stable version, and we provide a specific facility so that you can use the latest API Extractor / compiler to analyze projects that are built using an older compiler version. But it's somewhat costly to stay on the absolute bleeding edge. For example, there is already a PR microsoft/rushstack#1124 upgrading to |
@octogonz sorry for the long delay. I finally came around trying First off, very good job on the configuration and the docs. I got started immediately with a < 10 loc config file! 👍 I do have to emit temporary build artifacts from tsc, but I may reconsider my opinion on that. I have also tried a few of the testcases that
So after all, I am quite surprised that my plugin handles a few of these edge-cases a bit better than api-extractor. Anyway, thanks for reaching out, and I will update my README slightly to point to these discussions |
Heads up: |
Cool, thanks! BTW it looks like the API Extractor line has broken link. It should be api-extractor.com.
Does your tool handle package1/src/index.ts export class A { }
export { B } from './file1'; and then you have this: package1/src/file1.ts export * from 'package2';
export * from 'package3'; Formally, the determination of whether Also, ES6 allows cycles such as two packages doing |
Fixed the link, and added new testcases: Yes, Do you have a specific testcase for circular dependencies involving Also, I do have ideas how to solve the inline namespace import from external ( |
Looks like an issue in rollup itself, which fails your testcase even without my plugin. |
@Swatinem I noticed this text in the README:
As someone who works on API Extractor, I'm curious what problems you encountered, and whether there's anything we could do to address them. API Extractor 7 has been in "beta" for the past few months because the analyzer was overhauled. We're now very close to releasing it. Since it's a new major version, this is a pretty good time to make breaking changes to the command line or config files if something should be improved/simplified.
The text was updated successfully, but these errors were encountered: