Skip to content

Commit ec518ec

Browse files
committed
Remove snipper custom cancel message, not supported in old ver
1 parent d3cb09f commit ec518ec

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

packages/cli-v3/src/commands/deploy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,10 +1038,7 @@ async function handleNativeBuildServerDeploy({
10381038
return process.exit(0);
10391039
}
10401040

1041-
const $queuedSpinner = spinner({
1042-
cancelMessage:
1043-
"Disconnecting from the build server log stream. If you intended to cancel the deployment instead, you can do that in the dashboard.",
1044-
});
1041+
const $queuedSpinner = spinner();
10451042
$queuedSpinner.start("Build queued");
10461043

10471044
const abortController = new AbortController();

packages/cli-v3/src/utilities/windows.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function truncateMessage(msg: string, maxLength?: number): string {
3737
return truncated + "...";
3838
}
3939

40-
const wrappedClackSpinner = (options: { cancelMessage?: string }) => {
40+
const wrappedClackSpinner = () => {
4141
let currentMessage = "";
4242
let isActive = false;
4343

@@ -47,7 +47,7 @@ const wrappedClackSpinner = (options: { cancelMessage?: string }) => {
4747
}
4848
};
4949

50-
const spinner = clackSpinner(options);
50+
const spinner = clackSpinner();
5151

5252
return {
5353
start: (msg?: string): void => {
@@ -112,9 +112,5 @@ const plainSpinner = () => ({
112112

113113
// This will become unecessary with the next clack release, the bug was fixed here:
114114
// https://github.com/natemoo-re/clack/pull/182
115-
export const spinner = (options: { cancelMessage?: string; plain?: boolean } = {}) =>
116-
options.plain
117-
? plainSpinner()
118-
: isWindows
119-
? ballmerSpinner()
120-
: wrappedClackSpinner({ cancelMessage: options.cancelMessage });
115+
export const spinner = (options?: { plain?: boolean } = {}) =>
116+
options.plain ? plainSpinner() : isWindows ? ballmerSpinner() : wrappedClackSpinner();

0 commit comments

Comments
 (0)