Skip to content

Commit bc7aeef

Browse files
fix build
1 parent da9d51c commit bc7aeef

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v3
2929
- uses: ./.github/actions/install-deps
30-
- run: pnpm run build
30+
- run: pnpm build
3131
- name: Install, build, and upload your site
3232
uses: withastro/action@v2
3333
with:

packages/test-utils/src/index.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,18 @@ export function testImgToStr(testImage: Bitmap) {
155155
unknownColorMap[c] = color;
156156
});
157157

158-
const lines = [];
158+
const lines: string[] = [];
159159

160160
for (let y = 0; y < testImage.height; y++) {
161-
lines[y] = "";
161+
let line = "";
162+
162163
for (let x = 0; x < w; x++) {
163164
const cell = testImage.data.readUInt32BE(4 * (y * w + x))!;
164165
const k = colors2[cell] || unknownColorMap[cell] || "?";
165-
lines[y] += k;
166+
line += k;
166167
}
168+
169+
lines[y] = line;
167170
}
168171

169172
return lines.join("\n");

0 commit comments

Comments
 (0)