Skip to content

Commit

Permalink
feat!: use c12 loader configuration (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
KeJunMao and antfu committed Mar 29, 2023
1 parent 2ef1e75 commit fd66bd7
Show file tree
Hide file tree
Showing 7 changed files with 229 additions and 17 deletions.
5 changes: 5 additions & 0 deletions bump.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from './src'

export default defineConfig({
all: true,
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
"watch": "npm run build -- --watch src",
"start": "esno src/cli/run.ts",
"upgrade": "npm-check -u && npm audit fix",
"bumpp": "esno src/cli/run.ts --tag --push --all",
"bumpp": "esno src/cli/run.ts",
"prepublishOnly": "npm run clean && npm run build",
"release": "npm run bumpp && npm publish"
},
"dependencies": {
"@jsdevtools/ez-spawn": "^3.0.4",
"c12": "^1.1.2",
"cac": "^6.7.14",
"fast-glob": "^3.2.12",
"prompts": "^2.4.2",
Expand Down
177 changes: 174 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function main(): Promise<void> {
process.on('unhandledRejection', errorHandler)

// Parse the command-line arguments
const { help, version, quiet, options } = parseArgs()
const { help, version, quiet, options } = await parseArgs()

if (help) {
process.exit(ExitCode.Success)
Expand All @@ -30,7 +30,7 @@ export async function main(): Promise<void> {
}
else {
if (!quiet)
options.progress = progress
options.progress = options.progress ? options.progress : progress

await versionBump(options)
}
Expand Down

0 comments on commit fd66bd7

Please sign in to comment.