pascal-triangle/dojo/config/build-widget/util.js
/**
 * Extract the rc data for the provided key to a temporary file and remove it from the dojorc.
 * This utility is necessary given that "eject" is treated as a full command (see
 * https://github.com/dojo/cli/issues/192 for more details).
 *
 * @param key The rc key (e.g., "build-widget")
 * @return The path to the temporary file
 */
Extract the rc data for the provided key to a temporary file and remove it from the dojorc.

@param key The rc key
@return The path to the temporary file
Extract the rc data for the provided key to a temporary file and remove it from the dojorc . @param key The rc key @return The path to the temporary file
function moveBuildOptions(key) {
    const tmpDir = fs.mkdtempSync(`${os.tmpdir()}${path.sep}`);
    const tmpRc = path.join(tmpDir, 'build-options.json');
    const rc = clearBuildOptions(key);
    fs.writeFileSync(tmpRc, JSON.stringify(rc));
    return tmpRc;
}
function moveBuildOptions ( key ) { const tmpDir = fs . mkdtempSync ( ` ${ os . tmpdir ( ) } ${ path . sep } ` ) ; const tmpRc = path . join ( tmpDir , 'build-options.json' ) ; const rc = clearBuildOptions ( key ) ; fs . writeFileSync ( tmpRc , JSON . stringify ( rc ) ) ; return tmpRc ; }
Extract the rc data for the provided key to a temporary file and remove it from the dojorc.
Extract the rc data for the provided key to a temporary file and remove it from the dojorc .