Skip to content

[api-extractor]: @internal APIs from 3rd party deps/node_modules are not removed in rolluped dts #3444

@Hotell

Description

@Hotell

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

Link to whole repro

Steps:

  1. run yarn build
  2. check output:

check packages/one/dist/public.d.ts:

packages APIs with @internal jsdoc are not removed from 3rd party

  • internalOne has been stripped as expected (inside package API)
  • 🐛 Attributes re-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    AE/AD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions