Skip to content

Commit 43472ab

Browse files
TibixDevADKaster
authored andcommitted
Chore: Swapped Node and Yarn to bun, both as a runner and a package manager
This commit removes most references to Node and Yarn, and switches them to Bun. Bun can natively run TypeScript files without a transpilation/build step, which greatly simplifies deployment and testing. As a result some of the scripts from `package.json` have been removed as they are no longer needed. Yarn has also been removed in favour of Bun as a package manager. Some references of SerenityOS have also been changed to Ladybird.
1 parent 649643d commit 43472ab

File tree

4 files changed

+9
-2311
lines changed

4 files changed

+9
-2311
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
worker: npm start
1+
worker: bun start

bun.lockb

126 KB
Binary file not shown.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "buggie-bot",
2+
"name": "ladybird-bot",
33
"version": "0.0.1",
4-
"description": "SerenityOS Discord Bot",
4+
"description": "Ladybird Discord Bot",
55
"main": "index.js",
66
"license": "BSD-2-Clause",
77
"engines": {
@@ -10,11 +10,8 @@
1010
"scripts": {
1111
"lint": "eslint . --ext .ts",
1212
"lint-and-fix": "eslint . --ext .ts --fix",
13-
"start:dev": "nodemon --watch './src/**' --ext 'ts,js,json' --exec \"ts-node --files ./src/index.ts\"",
14-
"prebuild": "rimraf ./build",
15-
"build": "tsc",
16-
"prestart": "npm run build",
17-
"start": "node build/index.js",
13+
"start:dev": "bun --watch ./src/index.ts",
14+
"start": "bun ./src/index.ts",
1815
"test": "mocha -r ts-node/register tests/**/*.test.ts"
1916
},
2017
"nodemonConfig": {
@@ -27,18 +24,19 @@
2724
},
2825
"repository": {
2926
"type": "git",
30-
"url": "git+https://github.com/SerenityOS/discord-bot.git"
27+
"url": "git+https://github.com/LadybirdBrowser/discord-bot.git"
3128
},
3229
"keywords": [
3330
"discord",
3431
"typescript",
3532
"bot",
33+
"ladybird",
3634
"serenityos"
3735
],
3836
"bugs": {
39-
"url": "https://github.com/SerenityOS/discord-bot/issues"
37+
"url": "https://github.com/LadybirdBrowser/discord-bot/issues"
4038
},
41-
"homepage": "https://github.com/SerenityOS/discord-bot#readme",
39+
"homepage": "https://github.com/LadybirdBrowser/discord-bot#readme",
4240
"devDependencies": {
4341
"@octokit/types": "^9.1.2",
4442
"@types/chai": "^4.3.4",

0 commit comments

Comments
 (0)