begin simple typescript migration
This commit is contained in:
4 files changed
+3366
-24
No files matched your search
Generated
+3340
-20
File diff suppressed because it is too large.
Load diff
+12
-3
@@ -10,9 +10,9 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node index.js",
|
||||
"dev": "node index.js",
|
||||
"debug": "nodemon index.js"
|
||||
"start": "node dist/index.js",
|
||||
"dev": "ts-node src/index.ts",
|
||||
"build": "tsc"
|
||||
},
|
||||
"author": "Braeden Sowinski",
|
||||
"license": "MIT",
|
||||
@@ -27,5 +27,14 @@
|
||||
"form-data": "^4.0.0",
|
||||
"mongodb": "^4.12.1",
|
||||
"winston": "^3.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.5.2",
|
||||
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||
"@typescript-eslint/parser": "^8.44.1",
|
||||
"eslint": "^9.36.0",
|
||||
"prettier": "^3.6.2",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
const { ShardingManager } = require("discord.js");
|
||||
import { ShardingManager } from "discord.js";
|
||||
const config = require("./config/config");
|
||||
|
||||
const manager = new ShardingManager("./bot.js", { token: config.Token });
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "CommonJS",
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in new issue
Block a user