Skip to content

Commit f0fab0e

Browse files
author
Thomas Pansino
committed
Overwrite existing requirements.txt file when generating from poetry
1 parent c9d910c commit f0fab0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/poetry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ function pyprojectTomlToRequirements() {
5454
fse.ensureDirSync(path.join(this.servicePath, '.serverless'));
5555
fse.moveSync(
5656
sourceRequirements,
57-
path.join(this.servicePath, '.serverless', 'requirements.txt')
57+
path.join(this.servicePath, '.serverless', 'requirements.txt'),
58+
{ "overwrite": true }
5859
);
5960
}
6061

0 commit comments

Comments
 (0)