Skip to content

Commit

Permalink
fix node@16 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Feb 13, 2023
1 parent 7d22b2c commit 2c6f28c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"packageManager": "[email protected]",
"volta": {
"node": "18.14.0"
"node": "16.19.0"
}
}
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @clack/core

## 0.0.9

### Patch Changes

- Fix node@16 issue (cannot read "createInterface" of undefined)

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/core",
"version": "0.0.8",
"version": "0.0.9",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/prompts/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class Prompt {
}
this.input.pipe(sink);

this.rl = readline.promises.createInterface({
this.rl = readline.createInterface({
input: this.input,
output: sink,
tabSize: 2,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { stdin, stdout } from 'node:process';
import { cursor } from "sisteransi";

export function block({ input = stdin, output = stdout, overwrite = true, hideCursor = true } = {}) {
const rl = readline.promises.createInterface({
const rl = readline.createInterface({
input,
output,
prompt: '',
Expand Down
7 changes: 7 additions & 0 deletions packages/prompts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @clack/prompts

## 0.0.2

### Patch Changes

- Updated dependencies
- @clack/core@0.0.9

## 0.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/prompts",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"build:types": "tsc -p ."
},
"dependencies": {
"@clack/core": "workspace:^0.0.8",
"@clack/core": "workspace:^0.0.9",
"add": "^2.0.6",
"picocolors": "^1.0.0",
"sisteransi": "^1.0.5"
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c6f28c

Please sign in to comment.