react/node_modules/@webpack-cli/utils/lib/resolve-packages.js
/**
 *
 * Attaches a promise to the installation of the package
 *
 * @param {Function} child - The function to attach a promise to
 * @returns {Promise} promise - Returns a promise to the installation
 */
Attaches a promise to the installation of the package
@param {Function} child - The function to attach a promise to
@returns {Promise} promise - Returns a promise to the installation
Attaches a promise to the installation of the package @param { Function } child - The function to attach a promise to @returns { Promise } promise - Returns a promise to the installation
function processPromise(child) {
    return new Promise((resolve, reject) => {
        if (child.exitCode !== 0) {
            reject();
        }
        else {
            resolve();
        }
    });
}
function processPromise ( child ) { return new Promise ( ( resolve , reject ) => { if ( child . exitCode !== 0 ) { reject ( ) ; } else { resolve ( ) ; } } ) ; }
Attaches a promise to the installation of the package
 @param {Function} child - The function to attach a promise to
 @returns {Promise} promise - Returns a promise to the installation
Attaches a promise to the installation of the package @param { Function } child - The function to attach a promise to @returns { Promise } promise - Returns a promise to the installation