Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Sep 1, 2024
1 parent da9d51c commit bc7aeef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- run: pnpm run build
- run: pnpm build
- name: Install, build, and upload your site
uses: withastro/action@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions packages/test-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,18 @@ export function testImgToStr(testImage: Bitmap) {
unknownColorMap[c] = color;
});

const lines = [];
const lines: string[] = [];

for (let y = 0; y < testImage.height; y++) {
lines[y] = "";
let line = "";

for (let x = 0; x < w; x++) {
const cell = testImage.data.readUInt32BE(4 * (y * w + x))!;
const k = colors2[cell] || unknownColorMap[cell] || "?";
lines[y] += k;
line += k;
}

lines[y] = line;
}

return lines.join("\n");
Expand Down

0 comments on commit bc7aeef

Please sign in to comment.