function generateToVariable(_a) {
    var requireArg = _a.requireArg, fileGlobs = _a.fileGlobs, pipelines = _a.pipelines, appName = _a.appName, _b = _a.excludeItems, excludeItems = _b === void 0 ? false : _b, _c = _a.excludeDictionary, excludeDictionary = _c === void 0 ? false : _c, language = _a.language, pipelinePatchFileGlobs = _a.pipelinePatchFileGlobs, debug = _a.debug, wipe = _a.wipe, rootPlaceholders = _a.rootPlaceholders, skipPlaceholderBlacklist = _a.skipPlaceholderBlacklist;
    return __awaiter(this, void 0, void 0, function () {
        var finalPipelines, _d, manifestInstance, manifestOutput;
        return __generator(this, function (_e) {
            switch (_e.label) {
                case 0:
                    initRequire(requireArg);
                    _d = pipelines;
                    if (_d) return [3 /*break*/, 2];
                    return [4 /*yield*/, getPipelineConfig({ patchGlobs: pipelinePatchFileGlobs })];
                case 1:
                    _d = (_e.sent());
                    _e.label = 2;
                case 2:
                    finalPipelines = _d;
                    manifestInstance = manifest_1.createManifestInstance({
                        pipelines: finalPipelines,
                        appName: appName,
                        excludeItems: excludeItems,
                        excludeDictionary: excludeDictionary,
                        language: language,
                        debug: debug,
                        wipe: wipe,
                        rootPlaceholders: rootPlaceholders,
                        skipPlaceholderBlacklist: skipPlaceholderBlacklist,
                    });
                    return [4 /*yield*/, processSpecFiles({ fileGlobs: fileGlobs, manifestInstance: manifestInstance })];
                case 3:
                    manifestInstance = _e.sent();
                    return [4 /*yield*/, manifestInstance.getManifest()];
                case 4:
                    manifestOutput = _e.sent();
                    return [2 /*return*/, manifestOutput];
            }
        });
    });
}
/**
 * generates the JSON manifest and returns it as a variable
 * NOTE: media is not copied into the manifest when using this method,
 * and no files are written to disk. Use generateToFile() to make a manifest
 * that is designed to get packaged/imported.
 *
 * @param {GenerateOptions} config
 */
generates the JSON manifest and returns it as a variable
NOTE: media is not copied into the manifest when using this method,
and no files are written to disk. Use generateToFile() to make a manifest
that is designed to get packaged/imported.


generates the JSON manifest and returns it as a variable NOTE : media is not copied into the manifest when using this method and no files are written to disk . Use generateToFile () to make a manifest that is designed to get packaged / imported .
function generateToVariable(_a) {
    var requireArg = _a.requireArg, fileGlobs = _a.fileGlobs, pipelines = _a.pipelines, appName = _a.appName, _b = _a.excludeItems, excludeItems = _b === void 0 ? false : _b, _c = _a.excludeDictionary, excludeDictionary = _c === void 0 ? false : _c, language = _a.language, pipelinePatchFileGlobs = _a.pipelinePatchFileGlobs, debug = _a.debug, wipe = _a.wipe, rootPlaceholders = _a.rootPlaceholders, skipPlaceholderBlacklist = _a.skipPlaceholderBlacklist;
    return __awaiter(this, void 0, void 0, function () {
        var finalPipelines, _d, manifestInstance, manifestOutput;
        return __generator(this, function (_e) {
            switch (_e.label) {
                case 0:
                    initRequire(requireArg);
                    _d = pipelines;
                    if (_d) return [3 , 2];
                    return [4 , getPipelineConfig({ patchGlobs: pipelinePatchFileGlobs })];
                case 1:
                    _d = (_e.sent());
                    _e.label = 2;
                case 2:
                    finalPipelines = _d;
                    manifestInstance = manifest_1.createManifestInstance({
                        pipelines: finalPipelines,
                        appName: appName,
                        excludeItems: excludeItems,
                        excludeDictionary: excludeDictionary,
                        language: language,
                        debug: debug,
                        wipe: wipe,
                        rootPlaceholders: rootPlaceholders,
                        skipPlaceholderBlacklist: skipPlaceholderBlacklist,
                    });
                    return [4 , processSpecFiles({ fileGlobs: fileGlobs, manifestInstance: manifestInstance })];
                case 3:
                    manifestInstance = _e.sent();
                    return [4 , manifestInstance.getManifest()];
                case 4:
                    manifestOutput = _e.sent();
                    return [2 , manifestOutput];
            }
        });
    });
}
function generateToVariable ( _a ) { var requireArg = _a . requireArg , fileGlobs = _a . fileGlobs , pipelines = _a . pipelines , appName = _a . appName , _b = _a . excludeItems , excludeItems = _b === void 0 ? false : _b , _c = _a . excludeDictionary , excludeDictionary = _c === void 0 ? false : _c , language = _a . language , pipelinePatchFileGlobs = _a . pipelinePatchFileGlobs , debug = _a . debug , wipe = _a . wipe , rootPlaceholders = _a . rootPlaceholders , skipPlaceholderBlacklist = _a . skipPlaceholderBlacklist ; return __awaiter ( this , void 0 , void 0 , function ( ) { var finalPipelines , _d , manifestInstance , manifestOutput ; return __generator ( this , function ( _e ) { switch ( _e . label ) { case 0 : initRequire ( requireArg ) ; _d = pipelines ; if ( _d ) return [ 3 , 2 ] ; return [ 4 , getPipelineConfig ( { patchGlobs : pipelinePatchFileGlobs } ) ] ; case 1 : _d = ( _e . sent ( ) ) ; _e . label = 2 ; case 2 : finalPipelines = _d ; manifestInstance = manifest_1 . createManifestInstance ( { pipelines : finalPipelines , appName : appName , excludeItems : excludeItems , excludeDictionary : excludeDictionary , language : language , debug : debug , wipe : wipe , rootPlaceholders : rootPlaceholders , skipPlaceholderBlacklist : skipPlaceholderBlacklist , } ) ; return [ 4 , processSpecFiles ( { fileGlobs : fileGlobs , manifestInstance : manifestInstance } ) ] ; case 3 : manifestInstance = _e . sent ( ) ; return [ 4 , manifestInstance . getManifest ( ) ] ; case 4 : manifestOutput = _e . sent ( ) ; return [ 2 , manifestOutput ] ; } } ) ; } ) ; }
generates the JSON manifest and returns it as a variable
 NOTE: media is not copied into the manifest when using this method,
 and no files are written to disk.
generates the JSON manifest and returns it as a variable NOTE : media is not copied into the manifest when using this method and no files are written to disk .
/*break*/ /*yield*/ /*yield*/ /*yield*/ /*return*/