Skip to content

Commit 2c6f28c

Browse files
committed
fix node@16 issue
1 parent 7d22b2c commit 2c6f28c

File tree

8 files changed

+20
-7
lines changed

8 files changed

+20
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
},
1414
"packageManager": "[email protected]",
1515
"volta": {
16-
"node": "18.14.0"
16+
"node": "16.19.0"
1717
}
1818
}

packages/core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @clack/core
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- Fix node@16 issue (cannot read "createInterface" of undefined)
8+
39
## 0.0.8
410

511
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/core",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"type": "module",
55
"exports": {
66
".": {

packages/core/src/prompts/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class Prompt {
7979
}
8080
this.input.pipe(sink);
8181

82-
this.rl = readline.promises.createInterface({
82+
this.rl = readline.createInterface({
8383
input: this.input,
8484
output: sink,
8585
tabSize: 2,

packages/core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { stdin, stdout } from 'node:process';
55
import { cursor } from "sisteransi";
66

77
export function block({ input = stdin, output = stdout, overwrite = true, hideCursor = true } = {}) {
8-
const rl = readline.promises.createInterface({
8+
const rl = readline.createInterface({
99
input,
1010
output,
1111
prompt: '',

packages/prompts/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @clack/prompts
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @clack/core@0.0.9
9+
310
## 0.0.1
411

512
### Patch Changes

packages/prompts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/prompts",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"type": "module",
55
"exports": {
66
".": {
@@ -36,7 +36,7 @@
3636
"build:types": "tsc -p ."
3737
},
3838
"dependencies": {
39-
"@clack/core": "workspace:^0.0.8",
39+
"@clack/core": "workspace:^0.0.9",
4040
"add": "^2.0.6",
4141
"picocolors": "^1.0.0",
4242
"sisteransi": "^1.0.5"

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)