Skip to content

Commit 752aac8

Browse files
committed
fix: bg image again
1 parent c501375 commit 752aac8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"type": "module",
77
"scripts": {
8-
"build": "tsc && cp src/deathbattle.png dist/",
8+
"build": "tsc",
99
"start": "node dist/index.js",
1010
"dev": "tsx src/index.ts",
1111
"watch": "tsc -w",

src/commands/deathbattle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function createBattleImage(
130130

131131
try {
132132
const background = await loadImage(
133-
path.join(process.cwd(), "dist", "deathbattle.png"),
133+
path.join(process.cwd(), "public", "deathbattle.png"),
134134
);
135135
ctx.drawImage(background, 0, 0, 1920, 1080);
136136

src/deathbattle.png

-1.45 MB
Binary file not shown.

0 commit comments

Comments
 (0)