trigger.dev
Version:
A Command-Line Interface for Trigger.dev (v3) projects
21 lines • 733 B
JavaScript
import { log, spinner as clackSpinner } from "@clack/prompts";
import { isWindows as stdEnvIsWindows } from "std-env";
export const isWindows = stdEnvIsWindows;
export function escapeImportPath(path) {
return isWindows ? path.replaceAll("\\", "\\\\") : path;
}
const ballmerSpinner = () => ({
start: (msg) => {
log.step(msg ?? "");
},
stop: (msg, code) => {
log.message(msg ?? "");
},
message: (msg) => {
log.message(msg ?? "");
},
});
// This will become unecessary with the next clack release, the bug was fixed here:
// https://github.com/natemoo-re/clack/pull/182
export const spinner = () => (isWindows ? ballmerSpinner() : clackSpinner());
//# sourceMappingURL=windows.js.map