Commit ce185bf
# Backport
This will backport the following commits from `main` to `9.3`:
- [fix stray .d.ts files from type_check in git worktrees
(#269960)](#269960)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Tyler
Smalley","email":"tyler.smalley@elastic.co"},"sourceCommit":{"committedDate":"2026-05-19T15:54:02Z","message":"fix
stray .d.ts files from type_check in git worktrees
(#269960)\n\nWorktrees share `node_modules `with the primary checkout,
so\n`@kbn/repo-info` always resolved `REPO_ROOT` to the primary tree.
This\ncaused tsc to emit target/types artifacts there instead of the
active\nworktree.\n\nFix: prefer `process.cwd()` when it resolves to a
different kibana root\nthan `__dirname`. Also throw a clear error when
`--project` matches no\nknown project rather than silently falling back
to checking every\nproject.\n\nCloses
#269739","sha":"05ba1523a7940a890f002387797bfbb0e66a2369","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v9.5.0"],"title":"fix
stray .d.ts files from type_check in git
worktrees","number":269960,"url":"https://github.com/elastic/kibana/pull/269960","mergeCommit":{"message":"fix
stray .d.ts files from type_check in git worktrees
(#269960)\n\nWorktrees share `node_modules `with the primary checkout,
so\n`@kbn/repo-info` always resolved `REPO_ROOT` to the primary tree.
This\ncaused tsc to emit target/types artifacts there instead of the
active\nworktree.\n\nFix: prefer `process.cwd()` when it resolves to a
different kibana root\nthan `__dirname`. Also throw a clear error when
`--project` matches no\nknown project rather than silently falling back
to checking every\nproject.\n\nCloses
#269739","sha":"05ba1523a7940a890f002387797bfbb0e66a2369"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/269960","number":269960,"mergeCommit":{"message":"fix
stray .d.ts files from type_check in git worktrees
(#269960)\n\nWorktrees share `node_modules `with the primary checkout,
so\n`@kbn/repo-info` always resolved `REPO_ROOT` to the primary tree.
This\ncaused tsc to emit target/types artifacts there instead of the
active\nworktree.\n\nFix: prefer `process.cwd()` when it resolves to a
different kibana root\nthan `__dirname`. Also throw a clear error when
`--project` matches no\nknown project rather than silently falling back
to checking every\nproject.\n\nCloses
#269739","sha":"05ba1523a7940a890f002387797bfbb0e66a2369"}}]}]
BACKPORT-->
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
1 parent 065f5dd commit ce185bf
2 files changed
Lines changed: 29 additions & 6 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
62 | 81 | | |
63 | 82 | | |
64 | 83 | | |
| |||
0 commit comments