Openstatus sdk
www.openstatus.dev
1import { build, emptyDir } from "@deno/dnt";
2
3await emptyDir("./npm");
4
5await build({
6 entryPoints: ["./src/mod.ts"],
7 outDir: "./npm",
8 shims: {
9 // see JS docs for overview and more options
10 deno: true,
11 },
12 package: {
13 // package.json properties
14 name: "@openstatus/sdk-node",
15 version: "0.1.0",
16 description: "SDK for openstatus.",
17 license: "MIT",
18 repository: {
19 type: "git",
20 url: "git+https://github.com/openstatushq/sdk-node.git",
21 },
22 bugs: {
23 url: "https://github.com/openstatushq/sdk-nod/issues",
24 },
25 },
26 postBuild() {
27 // steps to run after building and before running the tests
28 Deno.copyFileSync("LICENSE", "npm/LICENSE");
29 Deno.copyFileSync("README.md", "npm/README.md");
30 },
31});