Skip to content

Commit 9557cea

Browse files
committed
fix(cli): pass converted cwd to spawn in shadowNpmBase
The URL-to-path conversion was happening but the converted string wasn't being passed to spawn. The spawn call received the original URL object in spawnOpts instead of the converted path string. This fix explicitly passes the converted cwd to spawn options, ensuring URL-based cwd values work correctly across all platforms. Fixes the "should handle URL cwd option" test failure.
1 parent 2bc7351 commit 9557cea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli/src/shadow/npm-base.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export default async function shadowNpmBase(
187187
],
188188
{
189189
...spawnOpts,
190+
cwd,
190191
env: {
191192
...process.env,
192193
...spawnEnv,

0 commit comments

Comments
 (0)