Commit 3193d51
committed
fix(cli): resolve TypeScript error in shadowNpmBase cwd handling
Extracted cwd from destructuring to avoid type conflict when spreading
spawnOpts. This ensures cwd is properly typed as string after URL-to-path
conversion and prevents TypeScript error about assigning {} to
string | URL | undefined.
Also removed unnecessary type cast in findUp call since cwd is now
correctly typed as string.1 parent 9557cea commit 3193d51
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments