diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 4da4ebb..ef0e3a7 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -1,10 +1,10 @@ import { build, emptyDir } from "https://deno.land/x/dnt@0.22.0/mod.ts"; -await emptyDir("../npm"); +await emptyDir("./npm"); await build({ - entryPoints: ["../mod.ts"], - outDir: "../npm", + entryPoints: ["./mod.ts"], + outDir: "./npm", shims: { deno: { test: "dev", @@ -36,13 +36,13 @@ await build({ }, }); -Deno.copyFileSync("LICENSE", "../npm/LICENSE"); +Deno.copyFileSync("./LICENSE", "./npm/LICENSE"); -const readme = Deno.readTextFileSync("README.md") +const readme = Deno.readTextFileSync("./README.md") .replaceAll("https://deno.land/std/testing/asserts.ts", "asserts") .replaceAll( "https://deno.land/x/combinatorics/mod.ts", "combinatorial-generators", ); -Deno.writeTextFileSync("../npm/README.md", readme); +Deno.writeTextFileSync("./npm/README.md", readme);