Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
feat: add basic error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Jul 11, 2022
1 parent dfea390 commit c7aa4c1
Show file tree
Hide file tree
Showing 4 changed files with 306 additions and 284 deletions.
7 changes: 7 additions & 0 deletions .changeset/curly-otters-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@darkflare/wjson": patch
---

feat: add basic error logging

Print errors to the console.
7 changes: 6 additions & 1 deletion src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ import { parseConfig } from '../modules/parseConfig'

const directory = argv.config ? dirname(join(process.cwd(), argv.config)) : process.cwd()

await writeFile(join(directory, './wrangler.toml'), await generateConfig(config))
const wranglerConfig = await generateConfig(config)

if (!wranglerConfig)
process.exit()

await writeFile(join(directory, './wrangler.toml'), wranglerConfig)
})()
Loading

0 comments on commit c7aa4c1

Please sign in to comment.