[api-extractor] Support wildcard patterns in `bundledPackages`
Closed this issue · 4 comments
Josmithr commented
Currently, the bundledPackages
feature in the api-extractor config only supports an explicit list of complete package names to be bundled when generating roll-ups. It would be convenient if users could specify wildcard patterns of some kind for these.
Consider the scenario of a mono-repo with a series of packages all scoped under a common namespace @foo
.
Rather than having to specify
"bundledPackages": ["@foo/a", "@foo/b", ... "@foo/z"],
it would be convenient to instead specify something like a glob pattern
"bundledPackages": ["@foo/*"],
or a RegExp
"bundledPackages": ["@foo/.*"],
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/api-extractor version? |
7.38.3 |
Operating system? | Linux |
API Extractor scenario? | rollups (.d.ts) |
Would you consider contributing a PR? | No |
TypeScript compiler version? | 5.1.6 |
Node.js version (node -v )? |
18.17.1 |
octogonz commented
I like the idea of using globs instead of regexps