function generateToFile(_a) {
    var _b = _a.outputPath, outputPath = _b === void 0 ? 'console' : _b, _c = _a.excludeMedia, excludeMedia = _c === void 0 ? false : _c, generateToVariableOptions = __rest(_a, ["outputPath", "excludeMedia"]);
    return __awaiter(this, void 0, void 0, function () {
        var manifestOutput;
        return __generator(this, function (_d) {
            switch (_d.label) {
                case 0: return [4 /*yield*/, generateToVariable(generateToVariableOptions)];
                case 1:
                    manifestOutput = _d.sent();
                    return [2 /*return*/, writeOutput({ outputPath: outputPath, manifest: manifestOutput, excludeMedia: excludeMedia })];
            }
        });
    });
}
/**
 * generates a JSON manifest and writes its contents to a directory. Media referenced in the manifest
 * is also copied to the directory.
 *
 * @param {GenerateToFileOptions} config
 */
generates a JSON manifest and writes its contents to a directory. Media referenced in the manifest
is also copied to the directory.


generates a JSON manifest and writes its contents to a directory . Media referenced in the manifest is also copied to the directory .
function generateToFile(_a) {
    var _b = _a.outputPath, outputPath = _b === void 0 ? 'console' : _b, _c = _a.excludeMedia, excludeMedia = _c === void 0 ? false : _c, generateToVariableOptions = __rest(_a, ["outputPath", "excludeMedia"]);
    return __awaiter(this, void 0, void 0, function () {
        var manifestOutput;
        return __generator(this, function (_d) {
            switch (_d.label) {
                case 0: return [4 , generateToVariable(generateToVariableOptions)];
                case 1:
                    manifestOutput = _d.sent();
                    return [2 , writeOutput({ outputPath: outputPath, manifest: manifestOutput, excludeMedia: excludeMedia })];
            }
        });
    });
}
function generateToFile ( _a ) { var _b = _a . outputPath , outputPath = _b === void 0 ? 'console' : _b , _c = _a . excludeMedia , excludeMedia = _c === void 0 ? false : _c , generateToVariableOptions = __rest ( _a , [ "outputPath" , "excludeMedia" ] ) ; return __awaiter ( this , void 0 , void 0 , function ( ) { var manifestOutput ; return __generator ( this , function ( _d ) { switch ( _d . label ) { case 0 : return [ 4 , generateToVariable ( generateToVariableOptions ) ] ; case 1 : manifestOutput = _d . sent ( ) ; return [ 2 , writeOutput ( { outputPath : outputPath , manifest : manifestOutput , excludeMedia : excludeMedia } ) ] ; } } ) ; } ) ; }
generates a JSON manifest and writes its contents to a directory.
generates a JSON manifest and writes its contents to a directory .
/*yield*/ /*return*/