-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_build.ts
More file actions
36 lines (32 loc) · 705 Bytes
/
_build.ts
File metadata and controls
36 lines (32 loc) · 705 Bytes
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
import {
build,
emptyDir,
} from "https://raw.githubusercontent.com/denoland/dnt/0.31.0/mod.ts";
import packageJson from "./package.json" assert { type: "json" };
await emptyDir("npm");
packageJson.version = Deno.args[0];
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
typeCheck: false,
test: false,
declaration: true,
scriptModule: false,
compilerOptions: {
target: "Latest",
sourceMap: true,
inlineSources: true,
lib: [
"esnext",
"dom",
],
},
shims: {
deno: false,
timers: false,
crypto: false,
},
package: packageJson,
});
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");