migrate to typescript

This commit is contained in:
Dainius Daukševičius
2020-10-17 21:56:54 +03:00
committed by Dainius Dauksevicius
parent c462323dd5
commit 08d27265fc
120 changed files with 5002 additions and 4711 deletions

View File

@@ -2,12 +2,12 @@
"name": "sponsor_block_server",
"version": "0.1.0",
"description": "Server that holds the SponsorBlock database",
"main": "index.js",
"main": "index.ts",
"scripts": {
"test": "node test.js",
"test": "ts-node test.ts",
"dev": "nodemon -x \"(npm test || echo test failed) && npm start\"",
"dev:bash": "nodemon -x 'npm test ; npm start'",
"start": "node index.js"
"start": "ts-node index.ts"
},
"author": "Ajay Ramachandran",
"license": "MIT",
@@ -19,12 +19,23 @@
"iso8601-duration": "^1.2.0",
"node-fetch": "^2.6.0",
"redis": "^3.0.2",
"request": "^2.88.2",
"sync-mysql": "^3.0.1",
"uuid": "^3.3.2",
"youtube-api": "^2.0.10"
"youtube-api": "^3.0.1"
},
"devDependencies": {
"@types/better-sqlite3": "^5.4.0",
"@types/express": "^4.17.8",
"@types/express-rate-limit": "^5.1.0",
"@types/mocha": "^8.0.3",
"@types/node": "^14.11.9",
"@types/node-fetch": "^2.5.7",
"@types/redis": "^2.8.28",
"@types/request": "^2.48.5",
"mocha": "^7.1.1",
"nodemon": "^2.0.2"
"nodemon": "^2.0.2",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
}
}