@@ -23,9 +23,6 @@ function injectRequirements(
23
23
injectionRelativePath ,
24
24
options
25
25
) {
26
- console . log ( 'requirementsPath' , requirementsPath ) ;
27
- console . log ( 'injectionRelativePath' , injectionRelativePath ) ;
28
- console . log ( 'packagePath' , packagePath ) ;
29
26
const noDeploy = new Set ( options . noDeploy || [ ] ) ;
30
27
31
28
return fse
@@ -34,21 +31,17 @@ function injectRequirements(
34
31
. then ( ( zip ) =>
35
32
BbPromise . resolve (
36
33
glob . sync ( [ path . join ( requirementsPath , '**' ) ] , {
37
- // glob.sync([path.join(packagePath, '..', 'requirements', '**')], {
38
34
mark : true ,
39
35
dot : true ,
40
36
} )
41
37
)
42
- . map ( ( file ) => {
43
- // console.log('first map file', file);
44
- return [
45
- file ,
46
- path . join (
47
- injectionRelativePath ,
48
- path . relative ( requirementsPath , file )
49
- ) ,
50
- ] ;
51
- } )
38
+ . map ( ( file ) => [
39
+ file ,
40
+ path . join (
41
+ injectionRelativePath ,
42
+ path . relative ( requirementsPath , file )
43
+ ) ,
44
+ ] )
52
45
. filter (
53
46
( [ file , relativeFile ] ) =>
54
47
! file . endsWith ( '/' ) &&
@@ -58,13 +51,12 @@ function injectRequirements(
58
51
. map ( ( [ file , relativeFile ] ) =>
59
52
Promise . all ( [ file , relativeFile , fse . statAsync ( file ) ] )
60
53
)
61
- . mapSeries ( ( [ file , relativeFile , fileStat ] ) => {
62
- // console.log('file', file);
63
- return zipFile ( zip , relativeFile , fse . readFileAsync ( file ) , {
54
+ . mapSeries ( ( [ file , relativeFile , fileStat ] ) =>
55
+ zipFile ( zip , relativeFile , fse . readFileAsync ( file ) , {
64
56
unixPermissions : fileStat . mode ,
65
57
createFolders : false ,
66
- } ) ;
67
- } )
58
+ } )
59
+ )
68
60
. then ( ( ) => writeZip ( zip , packagePath ) )
69
61
) ;
70
62
}
0 commit comments