'use strict';

!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="81b005f9-8620-5558-a7b7-3a90705ad95a")}catch(e){}}();

var chunkO24NAZIY_js = require('./chunk-O24NAZIY.js');
var chunkB4N5LDWU_js = require('./chunk-B4N5LDWU.js');
var chunkGH7MN4KC_js = require('./chunk-GH7MN4KC.js');
var chunkTKGT252T_js = require('./chunk-TKGT252T.js');
var m = require('path');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var m__default = /*#__PURE__*/_interopDefault(m);

var i=chunkTKGT252T_js.e(chunkGH7MN4KC_js.s());async function y(s){let{flags:o}=(0, i.default)(`
    Usage
      $ chromatic generate-manifest -o <output-dir> [-c <config-dir>]

    Options
      --output-dir, -o <dirname>            Directory where manifest.json will be written (required)
      --storybook-config-dir, -c <dirname>  Directory where to load Storybook configurations from (default: '.rnstorybook')

    Examples
      $ chromatic generate-manifest -o ./storybook-static
      $ chromatic generate-manifest -o ./.storybook-static -c ./custom-config
    `,{argv:s,description:"Generate manifest.json for React Native Storybook",flags:{outputDir:{type:"string",alias:"o"},storybookConfigDir:{type:"string",alias:"c",default:".rnstorybook"}}}),r=chunkB4N5LDWU_js.b({},{logPrefix:"",logLevel:"debug"});if(!o.outputDir){r.error("Error: --output-dir is required");return}let n={log:r,options:{storybookConfigDir:o.storybookConfigDir},sourceDir:m__default.default.resolve(o.outputDir)};try{await chunkO24NAZIY_js.a(n);}catch(a){r.error(`Error: ${a.message}`),process.exit(1);}}

exports.main = y;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=generateManifest-OC63TJ7O.js.map
//# debugId=81b005f9-8620-5558-a7b7-3a90705ad95a
