Skip to content

Commit

Permalink
chore(deps): update dependency @types/node to v20.12.11 (#3138)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
  • Loading branch information
renovate[bot] and tido64 committed May 13, 2024
1 parent 2e879f9 commit e5f8d5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-poems-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/commitlint-lite": patch
---

Use `process.stdin` instead of `process.openStdin`
11 changes: 4 additions & 7 deletions incubator/commitlint-lite/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/usr/bin/env node

import { COMMIT_TYPES, MAX_LINE_LENGTH } from "./constants.js";
import { lint } from "./index.js";

const data: string[] = [];
const stdin = process.openStdin();
stdin.setEncoding("utf8");
stdin.on("data", (chunk) => data.push(chunk));
stdin.on("end", () => {
const message = data.join("").trim();
const data: Buffer[] = [];
process.stdin.on("data", (chunk) => data.push(chunk));
process.stdin.on("end", () => {
const message = Buffer.concat(data).toString("utf-8").trim();
const issues = lint(message);
if (issues.length > 0) {
process.exitCode = issues.length;
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4902,11 +4902,11 @@ __metadata:
linkType: hard

"@types/node@npm:*, @types/node@npm:^20.0.0":
version: 20.12.7
resolution: "@types/node@npm:20.12.7"
version: 20.12.11
resolution: "@types/node@npm:20.12.11"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10c0/dce80d63a3b91892b321af823d624995c61e39c6a223cc0ac481a44d337640cc46931d33efb3beeed75f5c85c3bda1d97cef4c5cd4ec333caf5dee59cff6eca0
checksum: 10c0/efaa7b08c50ba6e6982ac7d531ba08d5935539ba76e954807df1ff9382a319ead7e003ccaca5ad7cf33ecf53f212507f7c1f2794bd2ff52df6365fef21f6e1fb
languageName: node
linkType: hard

Expand Down

0 comments on commit e5f8d5f

Please sign in to comment.