Skip to content

Commit 0f12313

Browse files
author
Jeshurun Hembd
committed
Pre-build private dependencies before engine
1 parent 7c45a5b commit 0f12313

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gulpfile.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ export async function build() {
112112
// Configure build target.
113113
const workspace = argv.workspace ? argv.workspace : undefined;
114114

115-
if (workspace === `@${scope}/core-math`) {
115+
if (workspace === `@${scope}/core-utils`) {
116+
return buildCoreUtils(buildOptions);
117+
} else if (workspace === `@${scope}/core-math`) {
118+
await buildCoreUtils(buildOptions);
116119
return buildCoreMath(buildOptions);
117120
} else if (workspace === `@${scope}/engine`) {
121+
await buildCoreUtils(buildOptions);
122+
await buildCoreMath(buildOptions);
118123
return buildEngine(buildOptions);
119124
} else if (workspace === `@${scope}/widgets`) {
120125
return buildWidgets(buildOptions);
121-
} else if (workspace === `@${scope}/core-utils`) {
122-
return buildCoreUtils(buildOptions);
123126
}
124127

125128
await buildCoreUtils(buildOptions);

0 commit comments

Comments
 (0)