@@ -3,7 +3,7 @@ const fse = require('fs-extra');
3
3
const path = require ( 'path' ) ;
4
4
const JSZip = require ( 'jszip' ) ;
5
5
const { writeZip, addTree } = require ( './zipTree' ) ;
6
- const { sha256Path, getRequirementsLayerPath} = require ( " ./shared" ) ;
6
+ const { sha256Path, getRequirementsLayerPath } = require ( ' ./shared' ) ;
7
7
8
8
BbPromise . promisifyAll ( fse ) ;
9
9
@@ -23,14 +23,16 @@ function zipRequirements() {
23
23
24
24
const promises = [ ] ;
25
25
if ( fse . existsSync ( zipCachePath ) ) {
26
- this . serverless . cli . log ( "Found cached Python Requirements Lambda Layer file" ) ;
26
+ this . serverless . cli . log (
27
+ 'Found cached Python Requirements Lambda Layer file'
28
+ ) ;
27
29
} else {
28
30
const rootZip = new JSZip ( ) ;
29
31
const runtimepath = 'python' ;
30
32
31
33
promises . push (
32
34
addTree ( rootZip . folder ( runtimepath ) , src ) . then ( ( ) =>
33
- writeZip ( rootZip , zipCachePath )
35
+ writeZip ( rootZip , zipCachePath )
34
36
)
35
37
) ;
36
38
}
@@ -39,7 +41,7 @@ function zipRequirements() {
39
41
if ( process . platform === 'win32' ) {
40
42
fse . copySync ( zipCachePath , targetZipPath ) ;
41
43
} else {
42
- fse . symlink ( zipCachePath , targetZipPath , 'file' )
44
+ fse . symlink ( zipCachePath , targetZipPath , 'file' ) ;
43
45
}
44
46
}
45
47
} ) ;
0 commit comments