[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay bomb.sh/docs/tty
Something went wrong. Try again.
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import { build, emptyDir } from "dnt";
const outDir = "./build/npm";
await emptyDir(outDir);
const [version] = Deno.args;if (!version) { throw new Error("a version argument is required to build the npm package");}
await build({ entryPoints: ["./mod.ts"], outDir, shims: { deno: false, }, scriptModule: false, test: false, typeCheck: false, compilerOptions: { lib: ["ESNext"], }, skipSourceOutput: true, package: { name: "@bomb.sh/tty", version, description: "A terminal rendering backend for Clay, compiled to WebAssembly", license: "MIT", repository: { type: "git", url: "git+https://github.com/bombshell-dev/tty.git", }, bugs: { url: "https://github.com/bombshell-dev/tty/issues", }, engines: { node: ">= 22", }, sideEffects: false, type: "module", },});
await Deno.copyFile("README.md", `${outDir}/README.md`);