pascal-triangle/dojo/config/build-widget/util.js
/**
 * @private
 * Clear the rc data for the specified key (e.g., "build-widget") from the dojorc and return
 * the cleared data.
 *
 * @param key The rc key
 * @return The cleared data
 */
@private
Clear the rc data for the specified key  from the dojorc and return
the cleared data.

@param key The rc key
@return The cleared data
@private Clear the rc data for the specified key from the dojorc and return the cleared data . @param key The rc key @return The cleared data
function clearBuildOptions(key) {
    const rcPath = path.join(process.cwd(), '.dojorc');
    if (fs.existsSync(rcPath)) {
        const rc = JSON.parse(fs.readFileSync(rcPath, 'utf8'));
        const config = rc[key] || {};
        rc[key] = {};
        fs.writeFileSync(rcPath, JSON.stringify(rc));
        return config;
    }
    return {};
}
function clearBuildOptions ( key ) { const rcPath = path . join ( process . cwd ( ) , '.dojorc' ) ; if ( fs . existsSync ( rcPath ) ) { const rc = JSON . parse ( fs . readFileSync ( rcPath , 'utf8' ) ) ; const config = rc [ key ] || { } ; rc [ key ] = { } ; fs . writeFileSync ( rcPath , JSON . stringify ( rc ) ) ; return config ; } return { } ; }
@private
 Clear the rc data for the specified key (e.g., "build-widget") from the dojorc and return
 the cleared data.
@private Clear the rc data for the specified key ( e . g . " build - widget " ) from the dojorc and return the cleared data .