-
Notifications
You must be signed in to change notification settings - Fork 2
/
dnt.ts
54 lines (51 loc) · 1.19 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { build, emptyDir } from "dnt";
await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
typeCheck: false,
test: true,
declaration: true,
scriptModule: "umd",
alwaysStrict: false,
importMap: "./import-map.json",
compilerOptions: {
lib: ["es2021", "dom"],
},
shims: {
deno: "dev",
},
package: {
name: "ohttp-js",
version: Deno.args[0],
description: "Oblivious HTTP Javascript library",
repository: {
type: "git",
url: "git+https://github.com/chris-wood/ohttp-js.git",
},
homepage: "https://github.com/chris-wood/ohttp-js#readme",
license: "MIT",
main: "./script/mod.js",
types: "./types/mod.d.ts",
exports: {
".": {
"import": "./esm/mod.js",
"require": "./script/mod.js",
},
"./package.json": "./package.json",
},
keywords: [
"ohttp",
],
engines: {
"node": ">=16.0.0",
},
author: "Christopher A. Wood <[email protected]>",
bugs: {
url: "https://github.com/chris-wood/ohttp-js/issues",
},
},
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");