Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
chore: better compilation & scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
viztea committed Sep 13, 2022
1 parent 524b538 commit cf1ca0f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"files": [ "dist" ],
"scripts": {
"build": "tsc",
"types": "rtb --dist dist",
"lint": "eslint --ext .ts ./src",
"types": "dts-bundle --removeSource --name erela.js --main ./dist --out ../typings/index.d.ts --baseDir ./dist",
"docs": "typedoc --json ./docs.json --mode file --excludeProtected --excludePrivate --excludeExternals src/structures",
"publish:stable": "yarn build && yarn types && yarn publish --access=public",
"publish:beta": "yarn build && yarn types && yarn publish --tag beta --access=public"
"publish:beta": "yarn build && yarn types && yarn publish --tag beta --access=public",
"ci": "run-s lint build types"
},
"keywords": [
"lavalink",
Expand All @@ -31,20 +32,22 @@
"repository": "MenuDocs/erela.js",
"bugs": "https://github.com/MenuDocs/erela.js",
"devDependencies": {
"@types/node": "^16.6.1",
"@types/ws": "^7.4.7",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"dts-bundle": "^0.7.3",
"eslint": "^7.7.0",
"typedoc": "^0.21.5",
"typedoc-plugin-no-inherit": "^1.2.0",
"typescript": "^4.3.5"
"@favware/rollup-type-bundler": "^1.0.11",
"@types/node": "v16",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"eslint": "^8.23.1",
"npm-run-all": "^4.1.5",
"typedoc": "^0.23.14",
"typedoc-plugin-no-inherit": "^1.4.0",
"typescript": "^4.8.3"
},
"dependencies": {
"@discordjs/collection": "^0.2.1",
"undici": "^4.11.0",
"ws": "^8.1.0"
"@discordjs/collection": "^1.1.0",
"tslib": "^2.4.0",
"undici": "^5.10.0",
"ws": "^8.8.1"
},
"engines": {
"node": ">=16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-async-promise-executor */
import Collection from "@discordjs/collection";
import { Collection } from "@discordjs/collection";
import { EventEmitter } from "events";
import { VoiceState } from "..";
import { Node, NodeOptions } from "./Node";
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es6",
"module": "commonjs",
"target": "ES2022",
"module": "CommonJS",
"declaration": true,
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true,
"importHelpers": true,

/* Strict Type-Checking Options */
// "strict": true,
Expand Down

0 comments on commit cf1ca0f

Please sign in to comment.