@@ -4,7 +4,6 @@ const jetpack = require('fs-jetpack');
4
4
const path = require ( 'path' ) ;
5
5
const archiver = require ( 'archiver' ) ;
6
6
const args = process . argv . slice ( 2 ) ;
7
- const notify = require ( './notifications' ) ;
8
7
const folder = path . join ( __dirname , '/..' ) ;
9
8
10
9
/**
@@ -63,7 +62,7 @@ async function createFolder() {
63
62
'!.DS_Store'
64
63
]
65
64
} ) ;
66
- notify ( 'Created folder' , `Created folder correctly` ) ;
65
+ console . log ( 'Created folder' , `Created folder correctly` ) ;
67
66
68
67
const zip = await createZip ( tmpfolder ) . catch ( ( error ) => {
69
68
jetpack . remove ( tmpfolder ) ;
@@ -73,7 +72,7 @@ async function createFolder() {
73
72
jetpack . remove ( tmpfolder ) ;
74
73
jetpack . move ( zip , path . join ( folder , folderName + '-master.zip' ) ) ;
75
74
76
- notify ( 'Done' , `Packaging process ended correctly` ) ;
75
+ console . log ( 'Done' , `Packaging process ended correctly` ) ;
77
76
}
78
77
createFolder ( ) ;
79
78
@@ -84,11 +83,11 @@ async function createZip(folder) {
84
83
const archive = archiver ( 'zip' , { zlib : { level : 9 } } ) ;
85
84
86
85
output . on ( 'close' , ( ) => {
87
- notify ( 'Zipped' , `zip archive was created correctly` ) ;
86
+ console . log ( 'Zipped' , `zip archive was created correctly` ) ;
88
87
resolve ( name ) ;
89
88
} ) ;
90
89
archive . on ( 'error' , ( err ) => {
91
- notify ( 'Package Error' , `The was an error creating the zip.` ) ;
90
+ console . log ( 'Package Error' , `The was an error creating the zip.` ) ;
92
91
reject ( err ) ;
93
92
} ) ;
94
93
0 commit comments