You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tns plugin add <plugin> has issues with postinstall scripts #1610
tns plugin add <plugin> has some issues with stdin when postinstall is using inquirer.
For example create plugin that has the following postinstall script:
In case you call npm install <plugin> the prompt is executed correctly and user can type.
In case you call tns plugin add <plugin> the user's input is slowed down, some symbols are not shown at all, etc.
Reproducible without using inquirer. Set the postinstall script to be:
constreadline=require('readline');constrl=readline.createInterface({input: process.stdin,output: process.stdout});rl.question('Ask something:? ',(answer)=>{console.log('Thank you for your valuable feedback, which was:\n',answer);rl.close();});
Activity
rosen-vladimirov commentedon Mar 22, 2016
Reproducible without using inquirer. Set the postinstall script to be: