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": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node dist/index.js",
|
||||||
"dev": "node index.js",
|
"dev": "ts-node src/index.ts",
|
||||||
"debug": "nodemon index.js"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"author": "Braeden Sowinski",
|
"author": "Braeden Sowinski",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -27,5 +27,14 @@
|
|||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"mongodb": "^4.12.1",
|
"mongodb": "^4.12.1",
|
||||||
"winston": "^3.8.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 config = require("./config/config");
|
||||||
|
|
||||||
const manager = new ShardingManager("./bot.js", { token: config.Token });
|
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