react/node_modules/@webpack-cli/init/lib/index.js
/**
 *
 * First function to be called after running the init flag. This is a check,
 * if we are running the init command with no arguments or if we got dependencies
 *
 * @param	{String[]}		args - array of arguments such as
 * packages included when running the init command
 * @returns	{Function}	creator/npmPackagesExists - returns an installation of the package,
 * followed up with a yeoman instance if there are packages. If not, it creates a defaultGenerator
 */
First function to be called after running the init flag. This is a check,
if we are running the init command with no arguments or if we got dependencies

@param       {String[]}              args - array of arguments such as
packages included when running the init command
@returns     {Function}      creator/npmPackagesExists - returns an installation of the package,
followed up with a yeoman instance if there are packages. If not, it creates a defaultGenerator
First function to be called after running the init flag . This is a check if we are running the init command with no arguments or if we got dependencies @param { String [] } args - array of arguments such as packages included when running the init command @returns { Function } creator / npmPackagesExists - returns an installation of the package followed up with a yeoman instance if there are packages . If not it creates a defaultGenerator
function initializeInquirer(...args) {
    const packages = args;
    const includesDefaultPrefix = packages.includes(AUTO_PREFIX);
    const generateConfig = packages.includes(CONFIG_PREFIX);
    if (packages.length === 0 || includesDefaultPrefix || generateConfig) {
        return utils_1.modifyHelperUtil('init', generators_1.initGenerator, null, null, includesDefaultPrefix, generateConfig);
    }
    return utils_1.npmPackagesExists(packages);
}
function initializeInquirer ( ... args ) { const packages = args ; const includesDefaultPrefix = packages . includes ( AUTO_PREFIX ) ; const generateConfig = packages . includes ( CONFIG_PREFIX ) ; if ( packages . length === 0 || includesDefaultPrefix || generateConfig ) { return utils_1 . modifyHelperUtil ( 'init' , generators_1 . initGenerator , null , null , includesDefaultPrefix , generateConfig ) ; } return utils_1 . npmPackagesExists ( packages ) ; }
First function to be called after running the init flag.
First function to be called after running the init flag .