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

Commit

Permalink
Merge pull request #65 from takejohn/dev/enable-ts
Browse files Browse the repository at this point in the history
TypeScriptを使用可能に
  • Loading branch information
ringo360 authored Mar 14, 2024
2 parents 87d075d + d070461 commit 89d301f
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 6 deletions.
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
}
}

0 comments on commit 89d301f

Please sign in to comment.