constatic
Version:
Constatic is a CLI for creating and managing modern TypeScript projects, providing an organized structure and features that streamline development.
34 lines (33 loc) • 916 B
JavaScript
// src/helpers/index.ts
export * from "./discord/emojis.js";
export * from "./discord/tokens.js";
export * from "./npm/package.js";
export * from "./files.js";
export * from "./format.js";
export * from "./lang.js";
export * from "./log.js";
export * from "./ui.js";
export * from "./validation.js";
export * from "./morph/functions.js";
export * from "./morph/objects.js";
export * from "./prompts.js";
import ck from "chalk";
var byeMessage = [
`\uD83D\uDC4B Discord: ${ck.blue("http://discord.gg/tTu8dGN")}`,
`\uD83D\uDE3A ${ck.cyan("Github")} / ${ck.red("youtube")}: @rinckodev`
].join(`
`);
function onCancel(error) {
if (error instanceof Error && error.name === "ExitPromptError") {
console.log();
console.log(byeMessage);
console.log();
process.exit(0);
}
throw error;
}
process.on("unhandledRejection", onCancel);
process.on("uncaughtException", onCancel);
export {
byeMessage
};