Christian Risi 15bae1af19 V0.7.0 Arroyo Toad
Fixed a design flaw where we supposed we could find keys before reading part of the message by adding support for a method to grab the key at runtime
2024-12-14 11:51:28 +00:00

31 lines
946 B
TypeScript

import { copy } from "https://deno.land/std@0.140.0/fs/mod.ts";
import { build, emptyDir } from "https://deno.land/x/dnt@0.37.0/mod.ts";
await emptyDir("./npm");
await copy("testdata", "npm/esm/testdata", { overwrite: true });
await copy("testdata", "npm/script/testdata", { overwrite: true });
await build({
entryPoints: ["./src/mod.ts"],
outDir: "./npm",
shims: {
deno: true,
},
package: {
name: "@farmtoad/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/Typescript-MessageUtils.git",
},
},
postBuild() {
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
Deno.copyFileSync(".npmrc", "npm/.npmrc");
},
});