-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts
35 lines (32 loc) · 945 Bytes
/
build.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { build, emptyDir } from "https://deno.land/x/[email protected]/mod.ts";
await emptyDir("./.npm");
await emptyDir("./.npm/docs");
await emptyDir("./.npm/docs/assets");
await build({
entryPoints: ["./package/mod.ts"],
outDir: "./.npm",
packageManager: "pnpm",
shims: {
undici: true
},
typeCheck: false,
test: false,
package: {
name: "unsort",
description:
"An unreliable and overall unusable sorting library for numbers with a global cache on the edge.",
keywords: ["sorting", "edge", "global-cache"],
version: "1.0.0-rc3",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/jwanner83/unsort.git",
},
bugs: {
url: "https://github.com/jwanner83/unsort/issues",
},
},
});
Deno.copyFileSync("./docs/assets/lead.svg", ".npm/docs/assets/lead.svg");
Deno.copyFileSync("LICENSE", ".npm/LICENSE");
Deno.copyFileSync("README.md", ".npm/README.md");