-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mts
85 lines (84 loc) · 1.63 KB
/
index.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { Clerc, Root, helpPlugin, versionPlugin } from "clerc";
Clerc.create(
"bumpp",
"Interactive CLI that bumps your version numbers and more",
"9.2.0",
)
.use(helpPlugin())
.use(versionPlugin())
.command(Root, "Bump your version numbers", {
parameters: ["[files...]"],
flags: {
preid: {
type: String,
description: "ID for prerelease",
},
all: {
type: Boolean,
description: "Include all files",
default: false,
},
commit: {
type: String,
alias: "c",
description: "Commit message",
},
noCommit: {
type: Boolean,
description: "Skip commit",
default: true,
},
tag: {
type: String,
alias: "t",
description: "Tag name",
},
push: {
type: Boolean,
alias: "p",
description: "Push to remote",
default: true,
},
yes: {
type: Boolean,
alias: "y",
description: "Skip confirmation",
default: true,
},
recursive: {
type: Boolean,
alias: "r",
description: "Bump package.json files recursively",
default: false,
},
noVerify: {
type: Boolean,
description: "Skip git verification",
default: true,
},
ignoreScripts: {
type: Boolean,
description: "Ignore scripts",
default: false,
},
quiet: {
type: Boolean,
description: "Quiet mode",
default: false,
},
version: {
type: String,
alias: "v",
description: "Target version",
},
execute: {
type: String,
alias: "x",
description: "Commands to execute after version bumps",
},
},
})
.on(Root, (ctx) => {
console.log(`Bumpping version:\n${JSON.stringify(ctx, null, 2)}`);
})
.parse();