Updating the usage of inquirer API

Summary:
Inquirer was changed to a later version in bada25d158. However, the API also needed to be updated to use a promise based version.
Closes https://github.com/facebook/react-native/pull/14848

Differential Revision: D5375663

Pulled By: javache

fbshipit-source-id: 635798a43905301c65db5f63b9cfba1c16964870
This commit is contained in:
Parashuram N 2017-07-06 14:27:32 -07:00 committed by Facebook Github Bot
parent f8ae461bc1
commit 352c3d97b3
1 changed files with 1 additions and 1 deletions

View File

@ -5,5 +5,5 @@ module.exports = (questions) => new Promise((resolve, reject) => {
return resolve({});
}
inquirer.prompt(questions, resolve);
inquirer.prompt(questions).then(resolve, reject);
});