Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Aug 29, 2023
1 parent 74693a8 commit 98ccc48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export async function cli(cwd: string, argv: string[]) {
}

if (command === 'build') {
return build(cwd, defaultFlags(flags, { frozen: false, prisma: true, ui: true }))
.then(() => process.exit(0))
return build(cwd, defaultFlags(flags, { frozen: false, prisma: true, ui: true })).then(() =>
process.exit(0)
);
}

if (command === 'start') {
Expand Down
11 changes: 5 additions & 6 deletions packages/core/src/scripts/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { cli } from './cli';
import { ExitError } from './utils';

cli(process.cwd(), process.argv.slice(2))
.catch(err => {
if (err instanceof ExitError) return process.exit(err.code);
cli(process.cwd(), process.argv.slice(2)).catch(err => {
if (err instanceof ExitError) return process.exit(err.code);

console.error(err);
process.exit(1);
});
console.error(err);
process.exit(1);
});

0 comments on commit 98ccc48

Please sign in to comment.