mirror of
https://github.com/meshtastic/web.git
synced 2026-08-01 07:26:34 -04:00
Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
33 lines
837 B
TypeScript
33 lines
837 B
TypeScript
import { build, emptyDir } from "@deno/dnt";
|
|
|
|
await emptyDir("./npm");
|
|
|
|
await build({
|
|
entryPoints: ["./mod.ts"],
|
|
outDir: "./npm",
|
|
shims: {
|
|
// see JS docs for overview and more options
|
|
deno: true,
|
|
},
|
|
package: {
|
|
// package.json properties
|
|
name: "@meshtastic/transport-deno",
|
|
version: Deno.args[0],
|
|
description:
|
|
"A Deno transport layer for your project, enabling seamless integration with npm.",
|
|
license: "GPL-3.0-only",
|
|
repository: {
|
|
type: "git",
|
|
url: "git+https://github.com/username/repo.git",
|
|
},
|
|
bugs: {
|
|
url: "https://github.com/meshtastic/web/issues",
|
|
},
|
|
},
|
|
postBuild() {
|
|
// steps to run after building and before running the tests
|
|
Deno.copyFileSync("../../LICENSE", "npm/LICENSE");
|
|
Deno.copyFileSync("README.md", "npm/README.md");
|
|
},
|
|
});
|