Skip to content

Commit 1c603fa

Browse files
authored
Don't set pip CWD to target dir (#246)
This fixes #245 by making it so that relative paths in dependencies resolve correctly
1 parent 8b06b7c commit 1c603fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function installRequirements(targetFolder, serverless, options) {
242242
const preparedPath = dockerPathForWin(options, targetFolder);
243243
cmdOptions.push(getStripCommand(options, preparedPath));
244244
}
245-
let spawnArgs = { cwd: targetFolder, shell: true };
245+
let spawnArgs = { shell: true };
246246
if (process.env.SLS_DEBUG) {
247247
spawnArgs.stdio = 'inherit';
248248
}

0 commit comments

Comments
 (0)