Files
discordeno/dnt.ts
2021-11-24 18:03:43 +00:00

22 lines
528 B
TypeScript

import { build } from "https://deno.land/x/dnt@0.7.3/mod.ts";
import { DISCORDENO_VERSION } from "./mod.ts";
await Deno.remove("npm", { recursive: true }).catch((_) => {});
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
typeCheck: false,
declaration: true,
test: false,
package: {
name: "discordeno",
version: DISCORDENO_VERSION,
},
compilerOptions: { target: "ES2020" },
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");