Commit 2863858
Fix: Don't change working directory when invoking tsp-client (#53156)
* Initial plan
* Fix: Don't change working directory when invoking tsp-client
Replace Push-Location/Pop-Location with npm --prefix option to avoid changing the working directory before invoking tsp-client. This fixes the issue where tsp-client makes assumptions based on the working directory.
Co-authored-by: JoshLove-msft <[email protected]>
* Use full path to tsp-client binary instead of npm exec
Keep Push-Location for npm ci as required, but execute tsp-client using the full path to the binary. This ensures npm ci runs from the correct directory while tsp-client executes from the current working directory.
Co-authored-by: JoshLove-msft <[email protected]>
* Use npm exec --prefix to invoke tsp-client
Keep Push-Location/Pop-Location for npm ci, then use npm exec --prefix to invoke tsp-client from the current working directory while using the pinned version from tsp-client directory.
Co-authored-by: JoshLove-msft <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JoshLove-msft <[email protected]>1 parent 6d493fa commit 2863858
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 143 | | |
152 | 144 | | |
153 | 145 | | |
154 | 146 | | |
155 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments