From fd99f98132e6b03d2389dff92d67a6e178eb9753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pi=C4=8Dka?= Date: Sat, 21 Sep 2019 21:20:41 +0200 Subject: [PATCH] Fixed saving requirements.txt when using poetry --- lib/poetry.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/poetry.js b/lib/poetry.js index ddf85201..526a9818 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -49,6 +49,11 @@ function pyprojectTomlToRequirements() { sourceRequirements, requirementsContents.replace(editableFlag, '') ); + } else { + fse.writeFileSync( + sourceRequirements, + requirementsContents + ); } fse.ensureDirSync(path.join(this.servicePath, '.serverless'));