UNPKG

chromatic

Version:

Automate visual testing across browsers. Gather UI feedback. Versioned documentation.

8 lines (6 loc) • 2.91 kB
#!/usr/bin/env node !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="381f5df1-c2ea-5bab-9fd7-9e2048023f59")}catch(e){}}(); const e=require(`./chunk-gGpyby2o.cjs`);var t=e.t(((e,t)=>{let n=require(`fs`),r=require(`path`);function i(e){console.log(`[dotenv][DEBUG] ${e}`)}let a=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,o=/\\n/g,s=/\n|\r|\r\n/;function c(e,t){let n=!!(t&&t.debug),r={};return e.toString().split(s).forEach(function(e,t){let s=e.match(a);if(s!=null){let e=s[1],t=s[2]||``,n=t.length-1,i=t[0]===`"`&&t[n]===`"`;t[0]===`'`&&t[n]===`'`||i?(t=t.substring(1,n),i&&(t=t.replace(o,` `))):t=t.trim(),r[e]=t}else n&&i(`did not match key and value when parsing line ${t+1}: ${e}`)}),r}function l(e){let t=r.resolve(process.cwd(),`.env`),a=`utf8`,o=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(a=e.encoding),e.debug!=null&&(o=!0));try{let e=c(n.readFileSync(t,{encoding:a}),{debug:o});return Object.keys(e).forEach(function(t){Object.prototype.hasOwnProperty.call(process.env,t)?o&&i(`"${t}" is already defined in \`process.env\` and will not be overwritten`):process.env[t]=e[t]}),{parsed:e}}catch(e){return{error:e}}}t.exports.config=l,t.exports.parse=c})),n=e.t(((e,t)=>{let n={};process.env.DOTENV_CONFIG_ENCODING!=null&&(n.encoding=process.env.DOTENV_CONFIG_ENCODING),process.env.DOTENV_CONFIG_PATH!=null&&(n.path=process.env.DOTENV_CONFIG_PATH),process.env.DOTENV_CONFIG_DEBUG!=null&&(n.debug=process.env.DOTENV_CONFIG_DEBUG),t.exports=n})),r=e.t(((e,t)=>{let n=/^dotenv_config_(encoding|path|debug)=(.+)$/;t.exports=function(e){return e.reduce(function(e,t){let r=t.match(n);return r&&(e[r[1]]=r[2]),e},{})}}));(function(){t().config(Object.assign({},n(),r()(process.argv)))})();const i={"generate-manifest":()=>Promise.resolve().then(()=>require(`./generateManifest-C3Oc78ys.cjs`)).then(({main:e})=>e(process.argv.slice(3))),init:()=>Promise.resolve().then(()=>require(`./init-C_N3lYVs.cjs`)).then(({main:e})=>e(process.argv.slice(3))),main:()=>Promise.resolve().then(()=>require(`./main-DwAIJxVK.cjs`)).then(({main:e})=>e(process.argv.slice(2))),"react-native-build":()=>Promise.resolve().then(()=>require(`./reactNativeBuild-DpUABHCx.cjs`)).then(({main:e})=>e(process.argv.slice(3))),trace:()=>Promise.resolve().then(()=>require(`./trace-CTe2l61A.cjs`)).then(({main:e})=>e(process.argv.slice(3))),"turbosnap-manifest":()=>Promise.resolve().then(()=>require(`./turbosnapManifest-D8ayzfrZ.cjs`)).then(({main:e})=>e(process.argv.slice(3))),"trim-stats-file":()=>Promise.resolve().then(()=>require(`./trimStatsFile-DY-Dcsh5.cjs`)).then(e=>e.n).then(({main:e})=>e(process.argv.slice(3)))};(i[process.argv[2]]||i.main)(); //# sourceMappingURL=bin.cjs.map //# debugId=381f5df1-c2ea-5bab-9fd7-9e2048023f59