sezna / nps

NPM Package Scripts -- All the benefits of npm scripts without the cost of a bloated package.json and limits of json
MIT License
1.43k stars 92 forks source link

nps confirming w/ a prompt #192

Closed Falieson closed 5 years ago

Falieson commented 5 years ago

I through this on stack overflow last summer, and it remains unanswered. https://stackoverflow.com/questions/50770212/adding-a-inquirer-confirmation-prompt-to-nps-package-scripting

essentially, how do I have nps call a prompt that calls a nps script? I get the error about scripts resolving to strings.

Thanks!

Somewhat relates to https://github.com/kentcdodds/nps/issues/123

kevjin commented 5 years ago

Hey Falieson, thanks for the issue. Would it be possible for you to make a wrapper script with inquirer.js and trigger release on callback? Related: https://github.com/SBoudrias/Inquirer.js/issues/684 At least for nps, this sounds like a feature request to support an async function as a script. It's something that we've discussed in the past and have decided not to implement, to avoid overcomplicating nps, see #184. Sorry about that.