File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- import sequential from 'promise-sequential' ;
2
1
import {
3
2
ManuallyTimedCodePath ,
4
3
stateManager ,
@@ -110,7 +109,9 @@ export const initializeEnv = async (
110
109
111
110
try {
112
111
context . usageData . startCodePathTimer ( ManuallyTimedCodePath . INIT_ENV_PLATFORM ) ;
113
- await sequential ( initializationTasks ) ;
112
+ for ( const initializationTask of initializationTasks ) {
113
+ await initializationTask ( ) ;
114
+ }
114
115
} catch ( e ) {
115
116
spinner . fail ( ) ;
116
117
throw new AmplifyFault (
@@ -136,7 +137,9 @@ export const initializeEnv = async (
136
137
137
138
try {
138
139
context . usageData . startCodePathTimer ( ManuallyTimedCodePath . INIT_ENV_CATEGORIES ) ;
139
- await sequential ( categoryInitializationTasks ) ;
140
+ for ( const categoryInitializationTask of categoryInitializationTasks ) {
141
+ await categoryInitializationTask ( ) ;
142
+ }
140
143
} catch ( e ) {
141
144
throw new AmplifyFault (
142
145
'ProjectInitFault' ,
@@ -164,7 +167,9 @@ export const initializeEnv = async (
164
167
providerPushTasks . push ( ( ) => providerModule . pushResources ( context , resourceDefinition ) ) ;
165
168
}
166
169
167
- await sequential ( providerPushTasks ) ;
170
+ for ( const providerPushTask of providerPushTasks ) {
171
+ await providerPushTask ( ) ;
172
+ }
168
173
}
169
174
170
175
// Generate AWS exports/configuration file
You can’t perform that action at this time.
0 commit comments