Convert to Typescript

This commit is contained in:
2024-09-16 09:56:40 +00:00
parent a89150fc2f
commit 6a59118f4a
42 changed files with 2916 additions and 785 deletions

View File

@@ -1,11 +1,12 @@
{
"name": "butlerbotng",
"version": "1.0.0",
"main": "src/index.js",
"type": "module",
"main": "dist/index.js",
"scripts": {
"start": "node src/index.js",
"register-slash-commands": "node src/register-slash-commands.js",
"start": "node dist/index.js",
"build": "tsup src/index.ts --minify",
"register-slash-commands": "tsx src/register-slash-commands.ts",
"dev": "tsx watch src/index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
@@ -26,6 +27,12 @@
"replicate": "^0.32.1"
},
"devDependencies": {
"eslint": "^9.9.1"
"@types/glob": "^8.1.0",
"@types/node": "^20.4.0",
"eslint": "^9.9.1",
"ts-node": "^10.9.1",
"tsup": "^8.2.4",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
}
}