/
dnt.ts
38 lines (35 loc) 路 887 Bytes
/
dnt.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
36
37
38
import { build } from "https://deno.land/x/[email protected]/mod.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
const outDir = "node";
await build({
entryPoints: ["./mod.ts"],
outDir,
shims: {
deno: {
test: "dev",
},
},
redirects: {
"./dom_polyfill_deno.ts": "./dom_polyfill_node.ts",
},
test: true,
package: {
name: "@kt3k/capsule",
version: "0.6.0",
description: "Event-driven DOM programming in a new style",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/capsidjs/capsule.git",
},
bugs: {
url: "https://github.com/capsidjs/capsule/issues",
},
devDependencies: {
jsdom: "^19.0.0",
"@types/jsdom": "^16.2.14",
},
},
});
Deno.copyFileSync("LICENSE", join(outDir, "LICENSE"));
Deno.copyFileSync("README.md", join(outDir, "README.md"));