Commit ffa4992
[api-extractor] Fix self-package import resolution in TypeScript compiler (#5301)
When analyzing .d.ts files that import the package itself, TypeScript's module
resolution would redirect to source .ts files instead of analyzing the build
artifacts. This occurs because TypeScript tries to avoid analyzing build outputs
when outDir/declarationDir are set.
Fix by deleting outDir and declarationDir options from the compiler configuration,
as API Extractor only uses the compiler for analysis and doesn't emit files.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: finalchild <finalchild@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent d420c67 commit ffa4992
2 files changed
Lines changed: 19 additions & 0 deletions
File tree
- apps/api-extractor/src/api
- common/changes/@microsoft/api-extractor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments