Openstatus sdk
www.openstatus.dev
1import { build, emptyDir } from "jsr:@deno/dnt@0.42.3";
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.3",
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-node/issues",
24 },
25 publishConfig: {
26 access: "public",
27 provenance: true,
28 },
29 },
30 postBuild() {
31 // steps to run after building and before running the tests
32 Deno.copyFileSync("LICENSE", "npm/LICENSE");
33 Deno.copyFileSync("README.md", "npm/README.md");
34 },
35});