Skip to content

Commit f581028

Browse files
committed
Don't set pip CWD to target dir
This fixes #245 by making it so that relative paths in dependencies resolve correctly
1 parent c0e40a4 commit f581028

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
@@ -227,7 +227,7 @@ function installRequirements(targetFolder, serverless, options) {
227227
const preparedPath = dockerPathForWin(options, targetFolder);
228228
cmdOptions.push(getStripCommand(options, preparedPath));
229229
}
230-
let spawnArgs = { cwd: targetFolder, shell: true };
230+
let spawnArgs = { shell: true };
231231
if (process.env.SLS_DEBUG) {
232232
spawnArgs.stdio = 'inherit';
233233
}

0 commit comments

Comments
 (0)