mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 07:20:08 +00:00
22 lines
528 B
TypeScript
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");
|