Skip to content

Commit

Permalink
fix: remove relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
N8Brooks committed Mar 25, 2022
1 parent b0602bd commit 8eaa16d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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);

0 comments on commit 8eaa16d

Please sign in to comment.