diff --git a/src/spawn.ts b/src/spawn.ts index 51141697..3af5b88a 100644 --- a/src/spawn.ts +++ b/src/spawn.ts @@ -30,7 +30,7 @@ export async function spawn(modulePath: string, args: string[] = [], {cwd, logLe const spawned = cpSpawn(modulePath, args, { cwd, env: { - ...npmRunPathEnv(), + ...npmRunPathEnv({cwd}), // Disable husky hooks because a plugin might be trying to install them, which will // break the install since the install location isn't a .git directory. HUSKY: '0',