diff --git a/.npmignore b/.npmignore index f2e7e52..ff95fea 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ src/ tslint.json +tsconfig.json .prettierrc test/ \ No newline at end of file diff --git a/package.json b/package.json index 6df8ed8..7f91270 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "test": "yarn build && cd test && node index.js", "build": "tsc", "format": "prettier --write \"src/**/*.ts\"", - "lint": "tslint -p tsconfig.json", - "postinstall": "npx tsc --build tsconfig.json" + "lint": "tslint -p tsconfig.json" }, "funding": "https://github.com/Androz2091/discord-player?sponsor=1", "contributors": [ @@ -37,8 +36,6 @@ "homepage": "https://github.com/Androz2091/discord-player#readme", "dependencies": { "@discord-player/extractor": "^2.0.0", - "@types/node": "^14.14.41", - "@types/ws": "^7.4.1", "discord-ytdl-core": "^5.0.2", "soundcloud-scraper": "^4.0.3", "spotify-url-info": "^2.2.0", @@ -47,6 +44,8 @@ }, "devDependencies": { "@discordjs/opus": "^0.5.0", + "@types/node": "^14.14.41", + "@types/ws": "^7.4.1", "discord.js": "^12.5.3", "prettier": "^2.2.1", "tslint": "^6.1.3", diff --git a/src/utils/Util.ts b/src/utils/Util.ts index 9a6eb6e..940fec1 100644 --- a/src/utils/Util.ts +++ b/src/utils/Util.ts @@ -73,7 +73,6 @@ export class Util { } static parseMS(milliseconds: number) { - // taken from ms package :: https://github.com/sindresorhus/parse-ms/blob/main/index.js const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil; return {