UNPKG

constatic

Version:

Constatic is a CLI for creating and managing modern TypeScript projects, providing an organized structure and features that streamline development.

16 lines (15 loc) 581 B
// src/actions/bot/add/discloud.ts import { copy } from "#helpers"; import path, { join } from "node:path"; async function addBotDiscloudAction(props) { const { cli, dist } = props; const dir = join(cli.templates.botPath, "extras", cli.shell.isBun ? "bun" : "discloud"); await copy(path.join(dir, "discloud.ignore.txt"), join(dist, ".discloudignore")); await copy(path.join(dir, "discloud.config.txt"), join(dist, "discloud.config")); if (cli.shell.isBun) { await copy(path.join(dir, "Dockerfile"), join(dist, "Dockerfile")); } } export { addBotDiscloudAction };