File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,19 @@ function pyprojectTomlToRequirements() {
33
33
throw new Error ( res . stderr ) ;
34
34
}
35
35
36
- const editableLine = new RegExp ( / ^ - e / gm) ;
36
+ const editableFlag = new RegExp ( / ^ - e / gm) ;
37
37
const sourceRequirements = path . join ( this . servicePath , 'requirements.txt' ) ;
38
38
const requirementsContents = fse . readFileSync ( sourceRequirements , {
39
39
encoding : 'utf-8'
40
40
} ) ;
41
41
42
- if ( requirementsContents . match ( editableLine ) ) {
42
+ if ( requirementsContents . match ( editableFlag ) ) {
43
43
this . serverless . cli . log (
44
44
'The generated file contains -e lines, removing them...'
45
45
) ;
46
46
fse . writeFileSync (
47
47
sourceRequirements ,
48
- requirementsContents . replace ( editableLine , '' )
48
+ requirementsContents . replace ( editableFlag , '' )
49
49
) ;
50
50
}
51
51
You can’t perform that action at this time.
0 commit comments