Files
discordeno/dnt.ts
ITOH 41a9c00070 ci(npm): publish to npm on tag creation (#1997)
* Create npm.yml

* fix invalid on

* Update dnt.ts

* Update npm.yml
2022-02-04 22:40:08 +01:00

21 lines
475 B
TypeScript

import { build } from "https://deno.land/x/dnt@0.7.3/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: Deno.args[0],
},
compilerOptions: { target: "ES2020" },
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");