From f58102882059da60fb433b49fdf6f863368b38ba Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Sun, 16 Sep 2018 14:57:44 +0000 Subject: [PATCH] Don't set pip CWD to target dir This fixes #245 by making it so that relative paths in dependencies resolve correctly --- lib/pip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pip.js b/lib/pip.js index 044f6c78..39d52abd 100644 --- a/lib/pip.js +++ b/lib/pip.js @@ -227,7 +227,7 @@ function installRequirements(targetFolder, serverless, options) { const preparedPath = dockerPathForWin(options, targetFolder); cmdOptions.push(getStripCommand(options, preparedPath)); } - let spawnArgs = { cwd: targetFolder, shell: true }; + let spawnArgs = { shell: true }; if (process.env.SLS_DEBUG) { spawnArgs.stdio = 'inherit'; }