2024-01-04 21:20:47 +01:00
|
|
|
import { build, emptyDir } from "dnt";
|
|
|
|
|
|
|
|
await emptyDir("./npm");
|
|
|
|
|
|
|
|
await build({
|
|
|
|
entryPoints: ["./mod.ts"],
|
|
|
|
outDir: "./npm",
|
|
|
|
shims: {
|
|
|
|
deno: true,
|
|
|
|
},
|
|
|
|
test: false,
|
|
|
|
importMap: "deno.json",
|
|
|
|
package: {
|
2024-01-04 21:33:53 +01:00
|
|
|
name: "@qpismont/nano-service",
|
2024-01-04 21:20:47 +01:00
|
|
|
version: Deno.args[0],
|
|
|
|
description: "Your package.",
|
|
|
|
license: "MIT",
|
|
|
|
repository: {
|
2024-01-04 21:33:53 +01:00
|
|
|
"type": "git",
|
|
|
|
"url": "https://gitea.qpismont.fr/qpismont/nano-service",
|
2024-01-04 21:20:47 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
postBuild() {
|
|
|
|
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
|
|
|
Deno.copyFileSync("README.md", "npm/README.md");
|
|
|
|
},
|
|
|
|
});
|