-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
dnt.ts
92 lines (89 loc) · 1.86 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { build } from "https://deno.land/x/dnt@0.17.0/mod.ts";
await Deno.remove("npm", { recursive: true }).catch((_) => {});
await build({
shims: {
deno: true,
timers: true,
blob: true,
undici: true,
custom: [
{
package: {
name: "ws",
version: "^8.4.0",
},
globalNames: [
{
name: "WebSocket",
exportName: "default",
},
],
},
],
},
entryPoints: [
"./mod.ts",
{
name: "./rest",
path: "src/rest/mod.ts",
},
{
name: "./gateway",
path: "src/ws/mod.ts",
},
{
name: "./types",
path: "src/types/mod.ts",
},
{
name: "./plugins",
path: "plugins/mod.ts",
},
{
name: "./cache-plugin",
path: "plugins/cache/mod.ts",
},
{
name: "./fileloader-plugin",
path: "plugins/fileloader/mod.ts",
},
{
name: "./helpers-plugin",
path: "plugins/helpers/mod.ts",
},
{
name: "./permissions-plugin",
path: "plugins/permissions/mod.ts",
},
],
outDir: "./npm",
typeCheck: false,
declaration: true,
test: false,
package: {
name: "discordeno",
version: Deno.args[0],
description: "Discordeno is simplistic, easy-to-use, versatile while being efficient and lightweight.",
keywords: [
"javascript",
"api",
"library",
"typescript",
"discord",
"discord-bot",
"discord-api",
"deno",
"discordeno",
],
author: "Skillz4Killz",
license: "Apache License 2.0",
bugs: {
url: "https://github.com/discordeno/discordeno/issues",
},
homepage: "https://discordeno.mod.land",
},
compilerOptions: { target: "ES2020" },
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");