Skip to content

Commit 5fdd260

Browse files
committed
fix(ci): align pnpm cache and tty modes
1 parent 849aa0d commit 5fdd260

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/cli-tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v4
2222

23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v3
25+
with:
26+
version: "10.28.0"
2327
- name: Setup Node
2428
uses: actions/setup-node@v4
2529
with:
2630
node-version: "20"
2731
cache: "pnpm"
2832
cache-dependency-path: "cli/pnpm-lock.yaml"
2933

30-
- name: Setup pnpm
31-
uses: pnpm/action-setup@v3
32-
with:
33-
version: "10.28.0"
34-
3534
- name: Install
3635
run: pnpm install
3736

cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function resolveTtyPath(): string | null {
109109
return null;
110110
}
111111

112-
function withTtyFd(mode: 'r' | 'w', fn: (fd: number) => void, ttyPath?: string | null) {
112+
function withTtyFd(mode: 'r' | 'w' | 'r+' | 'w+', fn: (fd: number) => void, ttyPath?: string | null) {
113113
try {
114114
const path = ttyPath || resolveTtyPath() || '/dev/tty';
115115
const fd = openSync(path, mode);

0 commit comments

Comments
 (0)