File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -187,30 +187,14 @@ module.exports = function(pattern, patternlab) {
187
187
uikit . outputDir
188
188
) ;
189
189
190
- patternlab . events . emit (
191
- events . PATTERNLAB_PATTERN_WRITE_END ,
192
- patternlab ,
193
- pattern
194
- ) ;
195
-
196
- console . log ( 196 ) ;
197
-
198
- ( async function ( ) {
190
+ await ( async function ( ) {
199
191
const hookHandlers = patternlab . hooks [
200
192
events . PATTERNLAB_PATTERN_WRITE_END
201
- ] . forEach ( h => h ( ) ) ;
202
- console . log ( 203 , hookHandlers . length ) ;
193
+ ] . map ( h => h ( patternlab , pattern ) ) ;
203
194
204
195
const results = await Promise . all ( hookHandlers ) ;
205
- console . log ( 205 , results ) ;
206
196
} ) ( ) ;
207
197
208
- console . log ( 208 ) ;
209
-
210
- await patternlab . hooks [ events . PATTERNLAB_PATTERN_WRITE_END ] ;
211
-
212
- console . log ( 212 ) ;
213
-
214
198
// Allows serializing the compile state
215
199
patternlab . graph . node (
216
200
pattern
You can’t perform that action at this time.
0 commit comments