remove dev stuff

This commit is contained in:
Snowflake107 2021-04-18 12:31:51 +05:45
parent b674b2b339
commit a3d3ca5722
3 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,5 @@
src/ src/
tslint.json tslint.json
tsconfig.json
.prettierrc .prettierrc
test/ test/

View file

@ -8,8 +8,7 @@
"test": "yarn build && cd test && node index.js", "test": "yarn build && cd test && node index.js",
"build": "tsc", "build": "tsc",
"format": "prettier --write \"src/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\"",
"lint": "tslint -p tsconfig.json", "lint": "tslint -p tsconfig.json"
"postinstall": "npx tsc --build tsconfig.json"
}, },
"funding": "https://github.com/Androz2091/discord-player?sponsor=1", "funding": "https://github.com/Androz2091/discord-player?sponsor=1",
"contributors": [ "contributors": [
@ -37,8 +36,6 @@
"homepage": "https://github.com/Androz2091/discord-player#readme", "homepage": "https://github.com/Androz2091/discord-player#readme",
"dependencies": { "dependencies": {
"@discord-player/extractor": "^2.0.0", "@discord-player/extractor": "^2.0.0",
"@types/node": "^14.14.41",
"@types/ws": "^7.4.1",
"discord-ytdl-core": "^5.0.2", "discord-ytdl-core": "^5.0.2",
"soundcloud-scraper": "^4.0.3", "soundcloud-scraper": "^4.0.3",
"spotify-url-info": "^2.2.0", "spotify-url-info": "^2.2.0",
@ -47,6 +44,8 @@
}, },
"devDependencies": { "devDependencies": {
"@discordjs/opus": "^0.5.0", "@discordjs/opus": "^0.5.0",
"@types/node": "^14.14.41",
"@types/ws": "^7.4.1",
"discord.js": "^12.5.3", "discord.js": "^12.5.3",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"tslint": "^6.1.3", "tslint": "^6.1.3",

View file

@ -73,7 +73,6 @@ export class Util {
} }
static parseMS(milliseconds: number) { 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; const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
return { return {