@@ -17,7 +17,7 @@ const { updateManifestDeps, resolveReleaseType } = require("./updateDeps");
17
17
function createInlinePluginCreator ( packages , multiContext , synchronizer , flags ) {
18
18
// Vars.
19
19
const { cwd } = multiContext ;
20
- const { todo, waitFor, waitForAll, emit, getLucky } = synchronizer ;
20
+ const { todo, waitFor, waitForAll, emit, getLucky, waitLocalDeps } = synchronizer ;
21
21
22
22
/**
23
23
* Create an inline plugin for an individual package in a multirelease.
@@ -181,6 +181,11 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
181
181
} ;
182
182
183
183
const prepare = async ( pluginOptions , context ) => {
184
+ if ( pkg . options . sequentialPrepare ) {
185
+ debug ( debugPrefix , "waiting local dependencies preparation" ) ;
186
+ await waitLocalDeps ( "_prepared" , pkg ) ;
187
+ }
188
+
184
189
// Wait until the current pkg is ready to be tagged
185
190
getLucky ( "_readyForTagging" , pkg ) ;
186
191
await waitFor ( "_readyForTagging" , pkg ) ;
@@ -196,6 +201,7 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
196
201
pkg . _prepared = true ;
197
202
198
203
debug ( debugPrefix , "prepared" ) ;
204
+ emit ( "_prepared" , pkg ) ;
199
205
200
206
return res ;
201
207
} ;
0 commit comments