You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the dtsRollup feature to bundle the dts files emitted by tsc, so I need to put them in a temporary folder of node_modules to avoid publishing them to npm.
I do not want to put them directly in temp folder in projectFolder since most build tools like swc and webpack all generate temp files in node_modules folder.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question
Answer
@microsoft/api-extractor version?
7.48.1
Operating system?
Mac
API Extractor scenario?
rollups (.d.ts)
Would you consider contributing a PR?
No
TypeScript compiler version?
5.7.2
Node.js version (node -v)?
22.10.0
The text was updated successfully, but these errors were encountered:
Summary
When using
dtsRollup
feature, I found that it is unable to bundle types frommainEntryPointFilePath
innode_modules
folder.Repro steps
https://github.com/Timeless0911/api-extractor-issue-node-modules-entry
Run
pnpm gen-types
to repro this issue.Expected result:
If I configure
mainEntryPointFilePath
to"<projectFolder>/dist/index.d.ts",
, the dts bundle inuntrimmedFilePath
is:Actual result:
When
mainEntryPointFilePath
set to"mainEntryPointFilePath": "<projectFolder>/node_modules/.temp/index.d.ts",
, the dts bundle inuntrimmedFilePath
is:Details
I want to use the dtsRollup feature to bundle the dts files emitted by tsc, so I need to put them in a temporary folder of
node_modules
to avoid publishing them to npm.I do not want to put them directly in temp folder in projectFolder since most build tools like swc and webpack all generate temp files in
node_modules
folder.Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?node -v
)?The text was updated successfully, but these errors were encountered: