sezna / nps

NPM Package Scripts -- All the benefits of npm scripts without the cost of a bloated package.json and limits of json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nps confirming w/ a prompt

Falieson opened this issue · comments

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 #123

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: SBoudrias/Inquirer.js#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.