Skip to content

Commit

Permalink
fix: use syncCli in check
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Feb 13, 2023
1 parent 7f13791 commit f005efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/cli/check/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interface Result {
export async function check(settings: AstroSettings, { logging }: { logging: LogOptions }) {
console.log(bold('astro check'));

const { sync } = await import('../../core/sync/index.js');
const syncRet = await sync(settings, { logging, fs });
const { syncCli } = await import('../../core/sync/index.js');
const syncRet = await syncCli(settings, { logging, fs });
// early exit on sync failure
if (syncRet === 1) return syncRet;

Expand Down

0 comments on commit f005efc

Please sign in to comment.