-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_main.ts
35 lines (33 loc) · 871 Bytes
/
build_main.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
import { build } from "https://deno.land/x/[email protected]/mod.ts";
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm/main",
cjs: false,
test: false,
shims: {
custom: [{
package: {
name: "@deno/shim-deno",
version: "0.1.1",
},
globalNames: ["Deno"],
}]
},
package: {
// package.json properties
name: "test-env-parallelization",
version: Deno.args[0],
description: "Test framework independent parallelization helper for test environments.",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/tiloio/test-env-parallelization.git",
},
bugs: {
url: "https://github.com/tiloio/test-env-parallelization/issues",
},
},
});
// post build steps
// Deno.copyFileSync("LICENSE", "npm/LICENSE");
// Deno.copyFileSync("README.md", "npm/README.md");