-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.ts
32 lines (31 loc) · 886 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
import { build, emptyDir } from "@deno/dnt";
await emptyDir("./npm");
await build({
entryPoints: ["./index.ts"],
outDir: "./npm",
shims: {
deno: true,
},
package: {
name: "uwuifier",
author: "Sjors van Holst",
license: "MIT",
version: "4.2.2",
homepage: "https://uwuifier.com",
description:
`Uwuifier is a lightweight package that allows you to uwuify any words or sentences (excluding URL's) with many configurable parameters!`,
repository: {
url: "git+https://github.com/Schotsl/Uwuifier.git",
type: "git",
},
bugs: {
url: "https://github.com/Schotsl/Uwuifier/issues",
},
// Less then ideal but I couldn't get JSR to work in Node while using dnt
test: false,
},
postBuild() {
Deno.copyFileSync("README.md", "npm/README.md");
Deno.copyFileSync("LICENSE.md", "npm/LICENSE.md");
},
});