Skip to content

Commit 22d0e63

Browse files
authored
chore: add option for no scope in changeset prompt (#214)
1 parent bbc1d4e commit 22d0e63

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/changeset.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,16 @@ const data = await prompt([
5050
type: 'select',
5151
name: 'scope',
5252
message: 'Select scope of the changes',
53-
choices: scopes.map((s) => ({
54-
value: s,
55-
title: s,
56-
})),
53+
choices: [
54+
{
55+
value: null,
56+
title: '[no scope] - change has no scope or affects multiple scopes',
57+
},
58+
...scopes.map((s) => ({
59+
value: s,
60+
title: s,
61+
})),
62+
],
5763
},
5864
]);
5965

0 commit comments

Comments
 (0)