GT2/GT2-Android/node_modules/xdl/build/__sourcemaps__/ProjectSettings.js.map

1 line
6.6 KiB
Plaintext
Raw Normal View History

{"version":3,"sources":["ProjectSettings.js"],"names":["async","projectRoot","let","projectSettings","await","projectSettingsJsonFile","projectSettingsFile","readAsync","e","writeAsync","projectSettingsDefaults","hostType","urlType","strict","_","defaults","json","mergeAsync","cantReadFileDefault","setAsync","packagerInfoFile","readPackagerInfoAsync","setPackagerInfoAsync","getPackagerOptsAsync","dotExpoProjectDirectory","dotExpoProjectDirectoryExists","lanType","dev","minify","urlRandomness","filename","path","join","dirPath","oldDirPath","fs","statSync","isDirectory","renameSync","mkdirp","sync"],"mappings":";;;;;;;;+BAwBOA,WAAyBC,WAAzBD,EAA8C;AACnDE,QAAIC,eAAJD;AACA,QAAI;AACFC,wBAAkBC,MAAMC,wBAAwBJ,WAAxBI,EAAqCC,mBAArCD,EAA0DE,SAA1DF,EAAxBF;AACF,KAFA,CAEE,OAAOK,CAAP,EAAU;AACVL,wBAAkBC,MAAMC,wBAAwBJ,WAAxBI,EAAqCC,mBAArCD,EAA0DI,UAA1DJ,CACtBK,uBADsBL,CAAxBF;AAGF;;AAEA,QAAIA,gBAAgBQ,QAAhBR,KAA6B,OAAjC,EAA0C;AACxC;AACAA,sBAAgBQ,QAAhBR,GAA2B,QAA3BA;AACF;;AAEA,QAAIA,gBAAgBS,OAApB,EAA6B;AAC3B;AACA,aAAOT,gBAAgBS,OAAvB;AACF;;AAEA,QAAI,YAAYT,eAAhB,EAAiC;AAC/B;AACA,aAAOA,gBAAgBU,MAAvB;AACF;;AAEA;AACAC,wCAAEC,QAAFD,CAAWX,eAAXW,EAA4BJ,uBAA5BI;AACA,WAAOX,eAAP;AACF,G;;kBA5BsBI,S;;;;;;gCA8BfP,WAAwBC,WAAxBD,EAA6CgB,IAA7ChB,EAAwD;AAC7D,QAAI;AACF,aAAOI,MAAMC,wBAAwBJ,WAAxBI,EAAqCC,mBAArCD,EAA0DY,UAA1DZ,CAAqEW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IAAII,sBAAsB,eAA1BJ;AACAA,IAAIQ,0BAA0B;AAC5BC,YAAU,QADkB;AAE5Be,WAAS,IAFmB;AAG5BC,OAAK,IAHuB;AAI5BC,UAAQ,KAJoB;AAK5BC,iBAAe;AALa,CAA9B3B;AAOAA,IAAIkB,mBAAmB,oBAAvBlB;;AAEA,SAASG,uBAAT,CAAiCJ,WAAjC,EAAsD6B,QAAtD,EAAwE;AACtE,SAAO,4CAAaC,cAAKC,IAALD,CAAUP,wBAAwBvB,WAAxBuB,CAAVO,EAAgDD,QAAhDC,CAAb,CAAP;AACF;;AAgEO,SAASP,uBAAT,CAAiCvB,WAAjC,EAAsD;AAC3DC,MAAI+B,UAAUF,cAAKC,IAALD,CAAU9B,WAAV8B,EAAuB,OAAvBA,CAAd7B;AACA,MAAI;AACF;AACAA,QAAIgC,aAAaH,cAAKC,IAALD,CAAU9B,WAAV8B,EAAuB,WAAvBA,CAAjB7B;AACA,QAAIiC,YAAGC,QAAHD,CAAYD,UAAZC,EAAwBE,WAAxBF,EAAJ,EAA2C;AACzCA,kBAAGG,UAAHH,CAAcD,UAAdC,EAA0BF,OAA1BE;AACF;AACF,GANA,CAME,OAAO3B,CAAP,EAAU;AACV;AACF;;AAEA+B,sCAAOC,IAAPD,CAAYN,OAAZM;AACA,SAAON,OAAP;AACF;;AAEO,SAASR,6BAAT,CAAuCxB,WAAvC,EAA4D;AACjEC,MAAI+B,UAAUF,cAAKC,IAALD,CAAU9B,WAAV8B,EAAuB,OAAvBA,CAAd7B;AACA,MAAI;AACF,QAAIiC,YAAGC,QAAHD,CAAYF,OAAZE,EAAqBE,WAArBF,EAAJ,EAAwC;AACtC,aAAO,IAAP;AACF;AACF,GAJA,CAIE,OAAO3B,CAAP,EAAU;AACV;AACF;;AAEA,SAAO,KAAP;AACF","file":"../ProjectSettings.js","sourcesContent":["/**\n * @flow\n */\n\nimport _ from 'lodash';\nimport JsonFile from '@expo/json-file';\nimport fs from 'fs';\nimport mkdirp from 'mkdirp';\nimport path from 'path';\n\nlet projectSettingsFile = 'settings.json';\nlet projectSettingsDefaults = {\n hostType: 'tunnel',\n lanType: 'ip',\n dev: true,\n minify: false,\n urlRandomness: null,\n};\nlet packagerInfoFile = 'packager-info.json';\n\nfunction projectSettingsJsonFile(projectRoot: string, filename: string) {\n return new JsonFile(path.join(dotExpoProjectDirectory(projectRoot), filename));\n}\n\nexport async function readAsync(projectRoot: string) {\n let projectSettings;\n try {\n projectSettings = await projectSettingsJsonFile(projectRoot, projectSettingsFil