build/src/cli.js
/**
 * Checks to see if a given directory has a `.gcloudignore` file.
 * @param targetDir The directory with the sources to deploy.
 */
Checks to see if a given directory has a `.gcloudignore` file.
@param targetDir The directory with the sources to deploy.
Checks to see if a given directory has a ` . gcloudignore ` file . @param targetDir The directory with the sources to deploy .
async function hasIgnoreFile(targetDir) {
    const ignoreFile = path.join(targetDir, '.gcloudignore');
    try {
        await util.promisify(fs.stat)(ignoreFile);
        return true;
    }
    catch (e) {
        return false;
    }
}
async function hasIgnoreFile ( targetDir ) { const ignoreFile = path . join ( targetDir , '.gcloudignore' ) ; try { await util . promisify ( fs . stat ) ( ignoreFile ) ; return true ; } catch ( e ) { return false ; } }
Checks to see if a given directory has a `.gcloudignore` file.
Checks to see if a given directory has a ` . gcloudignore ` file .