Skip to content

Commit fd66bd7

Browse files
KeJunMaoantfu
andauthored
feat!: use c12 loader configuration (#4)
Co-authored-by: Anthony Fu <[email protected]>
1 parent 2ef1e75 commit fd66bd7

File tree

7 files changed

+229
-17
lines changed

7 files changed

+229
-17
lines changed

bump.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from './src'
2+
3+
export default defineConfig({
4+
all: true,
5+
})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@
5252
"watch": "npm run build -- --watch src",
5353
"start": "esno src/cli/run.ts",
5454
"upgrade": "npm-check -u && npm audit fix",
55-
"bumpp": "esno src/cli/run.ts --tag --push --all",
55+
"bumpp": "esno src/cli/run.ts",
5656
"prepublishOnly": "npm run clean && npm run build",
5757
"release": "npm run bumpp && npm publish"
5858
},
5959
"dependencies": {
6060
"@jsdevtools/ez-spawn": "^3.0.4",
61+
"c12": "^1.1.2",
6162
"cac": "^6.7.14",
6263
"fast-glob": "^3.2.12",
6364
"prompts": "^2.4.2",

pnpm-lock.yaml

Lines changed: 174 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function main(): Promise<void> {
1818
process.on('unhandledRejection', errorHandler)
1919

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

2323
if (help) {
2424
process.exit(ExitCode.Success)
@@ -30,7 +30,7 @@ export async function main(): Promise<void> {
3030
}
3131
else {
3232
if (!quiet)
33-
options.progress = progress
33+
options.progress = options.progress ? options.progress : progress
3434

3535
await versionBump(options)
3636
}

0 commit comments

Comments
 (0)