We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f900417 commit 1309b93Copy full SHA for 1309b93
scripts/release/cli.ts
@@ -42,9 +42,11 @@ const prompt = createPromptModule();
42
await bannerText();
43
44
/**
45
- * If there are unstaged changes, error
+ * If there are unstaged changes, error.
46
+ * Use --ignoreUnstaged to skip, such as if release-cli is continuing from a
47
+ * checkpoint.
48
*/
- if (await hasDiff()) {
49
+ if (!argv.ignoreUnstaged || (await hasDiff())) {
50
throw new Error(
51
'You have unstaged changes, stash your changes before attempting to publish'
52
);
0 commit comments