-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- OS: DevContainer
- Node Version: 20.19.1
- Package: @clack/prompts
- Package Version: 1.0.0-alpha.0
Describe the bug
Let's assume this code:
const defaultPath = './';
const path = await p.text({
message: 'Where would you like your project to be created?',
placeholder: ` (hit Enter to use '${defaultPath}')`,
defaultValue: defaultPath,
});
console.log(path);path evaluates to (hit Enter to use './'), but that shouldn't be the case and was not the case in pre 1.0
To Reproduce
Reproduction
Steps to reproduce the behavior:
- install deps
- run
node . - Press "Enter" in the text prompt
aliasghar98dreyfus92
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done