Skip to content

Commit

Permalink
chore: fix build and dev command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Aug 3, 2023
1 parent 7449654 commit 9730d08
Show file tree
Hide file tree
Showing 15 changed files with 751 additions and 508 deletions.
11 changes: 6 additions & 5 deletions bin/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { argv } from 'process'
import updateNotifier from 'update-notifier'

import { createMainCommand } from '../src/commands/index.mjs'
import { error } from '../src/utils/command-helpers.mjs'
import getPackageJson from '../src/utils/get-package-json.mjs'

// 12 hours
Expand All @@ -15,16 +16,16 @@ try {
pkg,
updateCheckInterval: UPDATE_CHECK_INTERVAL,
}).notify()
} catch (error) {
console.log('Error checking for updates:')
console.log(error)
} catch (error_) {
error('Error checking for updates:')
error(error_)
}

const program = createMainCommand()

try {
await program.parseAsync(argv)
program.onEnd()
} catch (error) {
program.onEnd(error)
} catch (error_) {
program.onEnd(error_)
}

0 comments on commit 9730d08

Please sign in to comment.