mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
prepare dnt
This commit is contained in:
31
.gitignore
vendored
31
.gitignore
vendored
@@ -2,31 +2,6 @@
|
||||
debug.ts
|
||||
configs.ts
|
||||
|
||||
.DS_Store
|
||||
.lock
|
||||
|
||||
# Node modules - npm
|
||||
node_modules/
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
|
||||
# Docs
|
||||
dist/
|
||||
public/
|
||||
.cache/
|
||||
|
||||
# IntelliJ IDEA
|
||||
.idea/
|
||||
|
||||
# Windows
|
||||
desktop.ini
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
*.code-workspace
|
||||
|
||||
# Sublime Text
|
||||
.sublime-project
|
||||
# npm stuff
|
||||
.npmignore
|
||||
package.json
|
||||
21
dnt.ts
Normal file
21
dnt.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { build } from "https://deno.land/x/dnt@0.6.0/mod.ts";
|
||||
import { DISCORDENO_VERSION } from "./mod.ts";
|
||||
|
||||
await Deno.remove("npm", { recursive: true }).catch((_) => {});
|
||||
|
||||
await build({
|
||||
entryPoints: ["./mod.ts"],
|
||||
outDir: "./npm",
|
||||
typeCheck: false,
|
||||
declaration: true,
|
||||
test: false,
|
||||
package: {
|
||||
name: "discordeno",
|
||||
version: DISCORDENO_VERSION,
|
||||
},
|
||||
compilerOptions: { target: "ES2020" },
|
||||
});
|
||||
|
||||
// post build steps
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||
Reference in New Issue
Block a user