Skip to content

Commit 4f1b69a

Browse files
authored
refactor: use mri to parse args (#22)
1 parent 7a991b1 commit 4f1b69a

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
},
2727
"dependencies": {
2828
"execa": "^7.1.1",
29-
"minimist": "^1.2.8",
29+
"mri": "^1.2.0",
3030
"picocolors": "^1.0.0",
3131
"prompts": "^2.4.2",
3232
"publint": "^0.1.11",
3333
"semver": "^7.5.1"
3434
},
3535
"devDependencies": {
36-
"@types/minimist": "^1.2.2",
3736
"@types/node": "^18.16.9",
3837
"@types/prompts": "^2.4.4",
3938
"@types/semver": "^7.5.0",

pnpm-lock.yaml

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

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import type { Options as ExecaOptions, ExecaReturnValue } from "execa";
55
import { execa } from "execa";
66
import type { ReleaseType } from "semver";
77
import semver from "semver";
8-
import minimist from "minimist";
8+
import mri from "mri";
99

10-
export const args = minimist(process.argv.slice(2));
10+
export const args = mri(process.argv.slice(2));
1111

1212
export const isDryRun = !!args.dry;
1313

0 commit comments

Comments
 (0)