rushstack
rushstack copied to clipboard
[api-extractor]: `@internal` APIs from 3rd party deps/node_modules are not removed in rolluped dts
Summary
3rd party package API's with @internal annotation are not removed when publicTrimmedFilePath is used.
3rd party package == any dependency installed outside actual repo
Repro steps
Steps:
- run
yarn build - check output:
check packages/one/dist/public.d.ts:

- ✅
internalOnehas been stripped as expected (inside package API) - 🐛
Attributesre-export hasn't been stripped (3rd party/node_modules package) - This should have been removed !
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/api-extractor version? |
7.24.2 |
| Operating system? | Linux/Mac |
| API Extractor scenario? | rollups (.d.ts) |
| Would you consider contributing a PR? | Maybe |
| TypeScript compiler version? | 4.6.4 |
Node.js version (node -v)? |
14.8.1 |