Skip to content

Commit

Permalink
fix: stderr in optipng
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Nov 15, 2024
1 parent 6d5f7e3 commit 2f5a58d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Cache Node Modules
id: cache-node-modules
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/optipng.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function optipng(bufferIn: Buffer): Promise<Buffer> {
let stderr = '';

// Capture stderr data
process.stderr.on('data', (data) => {
process.stderr?.on('data', (data) => {
stderr += data.toString();
});

Expand Down

0 comments on commit 2f5a58d

Please sign in to comment.