Skip to content

Commit c3ea809

Browse files
authored
fix(cli): ensures the execution order of CLI hooks (#7947)
1 parent 8d02630 commit c3ea809

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cli/src/common.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@ export async function runHooks(config: Config, platformName: string, dir: string
151151
await runPlatformHook(config, platformName, dir, hook);
152152

153153
const allPlugins = await getPlugins(config, platformName);
154-
allPlugins.forEach(async (p) => {
154+
155+
for (const p of allPlugins) {
155156
await runPlatformHook(config, platformName, p.rootPath, hook);
156-
});
157+
}
157158
}
158159

159160
export async function runPlatformHook(

0 commit comments

Comments
 (0)