26 lines
729 B
TypeScript
26 lines
729 B
TypeScript
import { build, emptyDir } from "https://deno.land/x/dnt@0.37.0/mod.ts";
|
|
|
|
await emptyDir("./npm");
|
|
|
|
await build({
|
|
entryPoints: ["./src/mod.ts"],
|
|
outDir: "./npm",
|
|
shims: {
|
|
deno: true,
|
|
},
|
|
package: {
|
|
name: "farmtoad-msg-utils",
|
|
version: Deno.args[0],
|
|
description:
|
|
"A collection of utils to deserialize valid messages coming from our farmtoad devices",
|
|
license: "MIT",
|
|
repository: {
|
|
type: "git",
|
|
url: "https://repositories.communitynotfound.work/PoliBa-Software-Architecture/IoT-Simulator-Core/src/branch/main/Scripts/openssl-ecdsa-certs.sh",
|
|
},
|
|
},
|
|
postBuild() {
|
|
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
|
Deno.copyFileSync("README.md", "npm/README.md");
|
|
},
|
|
}); |