Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

TypeScriptを使用可能に #65

Merged
merged 3 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ discord.js@v14を使用した、多機能botです。
2. `npm install`で依存関係をインストール
3. `config.json.example`を`config.json`としてコピーする
4. `config.json`を編集
6. `node discordbot.js`、または`pm2 start discordbot.js`で起動!
6. `npm start`、または`pm2 start npm -- start`で起動!


## コマンドを登録する
Expand Down
175 changes: 172 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@
},
"name": "mcsv-discord-bot",
"version": "2.1.0",
"main": "index.js",
"main": "discordbot.js",
"repository": "https://github.com/ringo360/Discord.js_Bot.git",
"author": "ringo360",
"license": "GPL-3.0-only",
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.27",
"jest": "^29.7.0",
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.2"
},
"scripts": {
"start": "npx ts-node .",
"test": "jest"
},
"workspaces": [
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "ES2022",
"allowJs": true,
"resolveJsonModule": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"skipLibCheck": true
}
}