Skip to content

Commit

Permalink
fix(server): make sure sync imports happen
Browse files Browse the repository at this point in the history
  • Loading branch information
fcastill committed Jan 30, 2020
1 parent 3a677a4 commit cc17197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/modules/engine/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export async function getInitializedEngine(
const engineExists = await engine.exists();
const isNewEngine = !engineExists || opts.forceCreate;
await initEngine(engine, opts);
if (isNewEngine && !opts.syncImportsOnCreation) {
engine.build({ syncImports: true });
if (isNewEngine && opts.syncImportsOnCreation) {
await engine.build({ syncImports: true });
}
initTimer.done('EngineInit');

Expand Down

0 comments on commit cc17197

Please sign in to comment.