File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,12 @@ module.exports = function link(config, args) {
106
106
} )
107
107
. filter ( dependency => dependency ) ;
108
108
109
- const tasks = dependencies . map ( dependency => ( ) => {
109
+ const tasks = Promise . all ( dependencies . map ( dependency => {
110
110
const pre = promisify ( dependency . config . commands . prelink || commandStub ) ;
111
111
const post = promisify ( dependency . config . commands . postlink || commandStub ) ;
112
112
113
113
return pre ( ) . then ( ( ) => linkDependency ( project , dependency ) ) . then ( post ) ;
114
- } ) ;
114
+ } ) ) ;
115
115
116
116
const assets = uniq (
117
117
dependencies . reduce (
@@ -121,7 +121,5 @@ module.exports = function link(config, args) {
121
121
asset => path . basename ( asset )
122
122
) ;
123
123
124
- tasks . push ( ( ) => linkAssets ( project , assets ) ) ;
125
-
126
- return Promise . all ( tasks . map ( task => task ( ) ) ) ;
124
+ return tasks . then ( ( ) => linkAssets ( project , assets ) ) ;
127
125
} ;
You can’t perform that action at this time.
0 commit comments