Skip to content

Commit 38ef756

Browse files
committed
Merge branch 'main' into ci/create-workflow
2 parents 45c1309 + d1adb45 commit 38ef756

40 files changed

Lines changed: 2402 additions & 319 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ yarn-debug.log*
1212
yarn-error.log*
1313

1414
# Env files
15+
!.env.example
1516
.env
17+
.env.local
18+
.env.*.local

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"editor.formatOnSave": true,
66
"editor.codeActionsOnSave": {
77
"source.fixAll.biome": "explicit"
8+
},
9+
"[typescript]": {
10+
"editor.defaultFormatter": "biomejs.biome"
11+
},
12+
"[json]": {
13+
"editor.defaultFormatter": "biomejs.biome"
814
}
915
}

biome.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3-
"linter": {
4-
"enabled": true,
5-
"rules": {
6-
"recommended": true,
7-
"style": {
8-
"noNonNullAssertion": "off",
9-
"useConst": "error",
10-
"useTemplate": "error"
11-
},
12-
"suspicious": {
13-
"noExplicitAny": "warn",
14-
"noArrayIndexKey": "off"
15-
},
16-
"correctness": {
17-
"noUnusedVariables": "error"
18-
}
19-
}
20-
},
21-
"formatter": {
22-
"enabled": true,
23-
"indentStyle": "space",
24-
"indentWidth": 2,
25-
"lineWidth": 100
26-
},
27-
"javascript": {
28-
"formatter": {
29-
"quoteStyle": "single",
30-
"trailingCommas": "es5",
31-
"semicolons": "always"
32-
}
33-
},
34-
"files": {
35-
"includes": ["*.ts", "*.js", "src/**/*"]
36-
}
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true,
7+
"style": {
8+
"noNonNullAssertion": "off",
9+
"useConst": "error",
10+
"useTemplate": "error"
11+
},
12+
"suspicious": {
13+
"noExplicitAny": "warn",
14+
"noArrayIndexKey": "off"
15+
},
16+
"correctness": {
17+
"noUnusedVariables": "error"
18+
}
19+
}
20+
},
21+
"formatter": {
22+
"enabled": true,
23+
"indentStyle": "space",
24+
"indentWidth": 2,
25+
"lineWidth": 100
26+
},
27+
"javascript": {
28+
"formatter": {
29+
"quoteStyle": "single",
30+
"trailingCommas": "es5",
31+
"semicolons": "always"
32+
}
33+
},
34+
"files": {
35+
"includes": ["*.ts", "*.js", "src/**/*"]
36+
}
3737
}

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"description": "Web Dev & Web Design discord bot",
55
"type": "module",
66
"scripts": {
7-
"build": "esbuild src/index.ts --platform=node --outdir=dist --target=node18 --format=esm",
7+
"build": "pnpm run build:ts && pnpm run build:copy",
8+
"build:ts": "tsup",
9+
"build:copy": "node scripts/copy-assets.js",
810
"start": "node dist/index.js",
9-
"dev": "pnpm run build && node --watch dist/index.js",
10-
"dev:build": "esbuild src/index.ts --platform=node --outdir=dist --target=node18 --watch --format=esm",
11+
"dev": "tsx watch src/index.ts",
12+
"deploy": "tsx src/util/deploy.ts",
1113
"lint": "biome lint .",
1214
"lint:fix": "biome lint --fix .",
1315
"format": "biome format --write .",
@@ -26,7 +28,8 @@
2628
"devDependencies": {
2729
"@biomejs/biome": "2.2.4",
2830
"@types/node": "^24.5.2",
29-
"esbuild": "^0.25.10",
31+
"tsup": "^8.5.0",
32+
"tsx": "^4.20.6",
3033
"typescript": "^5.9.2",
3134
"zod": "^4.1.11"
3235
}

0 commit comments

Comments
 (0)