Skip to content

Commit

Permalink
wip: fix types in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Oct 26, 2022
1 parent 212211f commit 346211f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { log } from "../logging";
import { createApp } from "./create";
import { getPreferredPackageManager } from "./getPreferredPackageManager";
import { setupRemix, isSetupPlatform, SetupPlatform } from "./setup";
import { logCompileFailure } from "../compiler/on-compile-failure";

export * as migrate from "./migrate";

Expand Down Expand Up @@ -173,8 +174,8 @@ export async function build(
await compiler.build(config, {
mode,
sourcemap,
onBuildFailure: (failure: compiler.BuildError) => {
compiler.formatBuildFailure(failure);
onBuildFailure: (failure: Error) => {
logCompileFailure(failure);
throw Error();
},
});
Expand Down

0 comments on commit 346211f

Please sign in to comment.