deno.land / x / gesso@v0.1.2 / scripts / build_npm.ts
12345678910111213141516171819202122232425262728293031import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";
await emptyDir("./npm");
await build({ entryPoints: ["./src/mod.ts"], outDir: "./npm", shims: { // see JS docs for overview and more options deno: true, undici: true, }, package: { // package.json properties name: "gesso-canvas-api", version: Deno.args[0], description: "An ESM library for the Canvas LMS REST API", license: "MIT", repository: { type: "git", url: "git+https://github.com/Peekoe/Gesso.git", }, bugs: { url: "https://github.com/Peekoe/Gessp/issues", }, },});
// post build stepsDeno.copyFileSync("README.md", "npm/README.md");
Version Info