Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: use c12 loader configuration #4

Merged
merged 2 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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