-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
dnt.ts
130 lines (127 loc) · 2.72 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
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: "rest/mod.ts",
},
{
name: "./gateway",
path: "gateway/mod.ts",
},
{
name: "./types",
path: "types/mod.ts",
},
{
name: "./transformers",
path: "transformers/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",
typesVersions: {
"*": {
"*": [
"./types/mod.d.ts",
],
"rest": [
"./types/rest/mod.d.ts",
],
"gateway": [
"./types/gateway/mod.d.ts",
],
"types": [
"./types/types/mod.d.ts",
],
"transformers": [
"./types/transformers/mod.d.ts",
],
"plugins": [
"./types/plugins/mod.d.ts",
],
"cache-plugin": [
"./types/plugins/cache/mod.d.ts",
],
"fileloader-plugin": [
"./types/plugins/fileloader/mod.d.ts",
],
"helpers-plugin": [
"./types/plugins/helpers/mod.d.ts",
],
"permissions-plugin": [
"./types/plugins/permissions/mod.d.ts",
],
},
},
},
compilerOptions: { target: "ES2020" },
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");