-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_npm.ts
More file actions
29 lines (27 loc) · 727 Bytes
/
build_npm.ts
File metadata and controls
29 lines (27 loc) · 727 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
import { build } from "https://deno.land/x/dnt/mod.ts";
await build({
entryPoints: ["./mod.ts"],
rootTestDir: "./src",
outDir: "./npm",
shims: {
deno: true
},
package: {
// package.json properties
name: "test-randomizing",
version: Deno.args[0],
description:
"Test Randomizing helps you to build randomized objects or class instances for your tests.",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/tiloio/test-randomizing.git",
},
bugs: {
url: "https://github.com/tiloio/test-randomizing/issues",
},
},
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");