mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
* fix: update dnt and settings * fix: plugins paths * Update dnt.ts Co-authored-by: ITOH <to@itoh.at> * Update dnt.ts Co-authored-by: ITOH <to@itoh.at> Co-authored-by: ITOH <to@itoh.at>
93 lines
1.9 KiB
TypeScript
93 lines
1.9 KiB
TypeScript
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");
|