expo-release-it 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{EnvUtil-DWWwkHaf.js → EnvUtil-C6QbCIoV.js} +1 -1
- package/build/{EnvUtil-DWWwkHaf.js.map → EnvUtil-C6QbCIoV.js.map} +1 -1
- package/build/{FastlaneOption-B9A0ECDL.js → FastlaneOption-DFukw3tx.js} +3 -3
- package/build/{FastlaneOption-B9A0ECDL.js.map → FastlaneOption-DFukw3tx.js.map} +1 -1
- package/build/{FileUtil-B9JnWobK.js → FileUtil-Dbvp87_g.js} +1 -1
- package/build/{FileUtil-B9JnWobK.js.map → FileUtil-Dbvp87_g.js.map} +1 -1
- package/build/{InqueryInputs-BGj-DlRa.js → InqueryInputs-D7SBtNYa.js} +2 -2
- package/build/{InqueryInputs-BGj-DlRa.js.map → InqueryInputs-D7SBtNYa.js.map} +1 -1
- package/build/{MetadataSyncUtil-j79hX3QT.js → MetadataSyncUtil-CEVDtDKU.js} +3 -3
- package/build/{MetadataSyncUtil-j79hX3QT.js.map → MetadataSyncUtil-CEVDtDKU.js.map} +1 -1
- package/build/{OptionHolder-H3HG0A95.js → OptionHolder-e-Xr3Bz7.js} +6 -6
- package/build/{OptionHolder-H3HG0A95.js.map → OptionHolder-e-Xr3Bz7.js.map} +1 -1
- package/build/{VersionUtil-BDB10Hpb.js → VersionUtil-D-pqgp7e.js} +5 -5
- package/build/VersionUtil-D-pqgp7e.js.map +1 -0
- package/build/{build-DLOdnj2j.js → build-mrbmjpTj.js} +10 -10
- package/build/{build-DLOdnj2j.js.map → build-mrbmjpTj.js.map} +1 -1
- package/build/{bump-0hlTovjE.js → bump-BSFUo4Lw.js} +7 -7
- package/build/{bump-0hlTovjE.js.map → bump-BSFUo4Lw.js.map} +1 -1
- package/build/{calculateElapsed-CynU9UU_.js → calculateElapsed-DORWymX3.js} +1 -1
- package/build/{calculateElapsed-CynU9UU_.js.map → calculateElapsed-DORWymX3.js.map} +1 -1
- package/build/command/build.js +17 -17
- package/build/command/bump.js +10 -10
- package/build/command/init.js +10 -10
- package/build/command/pull.js +16 -16
- package/build/command/submit.js +17 -17
- package/build/command/upload.js +17 -17
- package/build/execShellScript-Bd5xbFX5.js.map +1 -1
- package/build/{generateAppStoreConnectApiKeyFile-DjxlrcZn.js → generateAppStoreConnectApiKeyFile-CWW5uiwQ.js} +3 -3
- package/build/{generateAppStoreConnectApiKeyFile-DjxlrcZn.js.map → generateAppStoreConnectApiKeyFile-CWW5uiwQ.js.map} +1 -1
- package/build/{hydrateKeyholderFileValues-BoaRs3SC.js → hydrateKeyholderFileValues-DGhfFdMP.js} +3 -3
- package/build/{hydrateKeyholderFileValues-BoaRs3SC.js.map → hydrateKeyholderFileValues-DGhfFdMP.js.map} +1 -1
- package/build/index.js +23 -23
- package/build/index.js.map +1 -1
- package/build/{init-cjD4jZiy.js → init-cpcJN2Kq.js} +5 -5
- package/build/{init-cjD4jZiy.js.map → init-cpcJN2Kq.js.map} +1 -1
- package/build/{injectTemplatePlaceHolders-CpIvd0dG.js → injectTemplatePlaceHolders-zAbDtdQ3.js} +4 -4
- package/build/{injectTemplatePlaceHolders-CpIvd0dG.js.map → injectTemplatePlaceHolders-zAbDtdQ3.js.map} +1 -1
- package/build/{iterateAllFiles-CbEPek2B.js → iterateAllFiles-CcRtjpos.js} +2 -2
- package/build/{iterateAllFiles-CbEPek2B.js.map → iterateAllFiles-CcRtjpos.js.map} +1 -1
- package/build/{parseConfigFile-hMLUnLZR.js → parseConfigFile-DPW8ByX1.js} +3 -3
- package/build/{parseConfigFile-hMLUnLZR.js.map → parseConfigFile-DPW8ByX1.js.map} +1 -1
- package/build/{prepareAndroid-Cjz6r6o0.js → prepareAndroid-DvpyJp29.js} +6 -6
- package/build/{prepareAndroid-Cjz6r6o0.js.map → prepareAndroid-DvpyJp29.js.map} +1 -1
- package/build/{prepareIos-ByPLFHC8.js → prepareIos-CPEUN3NP.js} +5 -5
- package/build/{prepareIos-ByPLFHC8.js.map → prepareIos-CPEUN3NP.js.map} +1 -1
- package/build/{pull-BHSlClDy.js → pull-CozZb8WP.js} +9 -9
- package/build/{pull-BHSlClDy.js.map → pull-CozZb8WP.js.map} +1 -1
- package/build/{setup-CRNjdK5q.js → setup-B5f8yFb5.js} +7 -7
- package/build/{setup-CRNjdK5q.js.map → setup-B5f8yFb5.js.map} +1 -1
- package/build/{submit-5gTyWBU2.js → submit-B4SQw15M.js} +9 -9
- package/build/{submit-5gTyWBU2.js.map → submit-B4SQw15M.js.map} +1 -1
- package/build/{throwError-DMF6E5pu.js → throwError-bsy4sijK.js} +2 -2
- package/build/{throwError-DMF6E5pu.js.map → throwError-bsy4sijK.js.map} +1 -1
- package/build/{upload-S09j3abh.js → upload-Cqb45MFF.js} +9 -9
- package/build/{upload-S09j3abh.js.map → upload-Cqb45MFF.js.map} +1 -1
- package/build/util/EnvUtil.js +1 -1
- package/build/util/FastlaneOption.js +3 -3
- package/build/util/FileUtil.js +1 -1
- package/build/util/MetadataSyncUtil.js +3 -3
- package/build/util/OptionHolder.js +2 -2
- package/build/util/calculateElapsed.js +1 -1
- package/build/util/generateAppStoreConnectApiKeyFile.js +3 -3
- package/build/util/injectTemplatePlaceHolders.js +4 -4
- package/build/util/input/InqueryInputs.js +3 -3
- package/build/util/iterateAllFiles.js +2 -2
- package/build/util/parseConfigFile.js +3 -3
- package/build/util/setup/VersionUtil.js +5 -5
- package/build/util/setup/hydrateKeyholderFileValues.js +3 -3
- package/build/util/setup/prepareAndroid.js +6 -6
- package/build/util/setup/prepareIos.js +6 -6
- package/build/util/setup/setup.js +8 -8
- package/build/util/throwError.js +2 -2
- package/package.json +4 -4
- package/build/VersionUtil-BDB10Hpb.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvUtil-
|
|
1
|
+
{"version":3,"file":"EnvUtil-C6QbCIoV.js","names":[],"sources":["../src/util/EnvUtil.ts"],"sourcesContent":["export const isDev = process.env.NODE_ENV === 'development';\nexport const isWin = process.platform.startsWith('win');\nexport const isTest = process.env.NODE_ENV === 'test';\n"],"mappings":";AAAA,MAAa,QAAQ,QAAQ,IAAI,aAAa;AAC9C,MAAa,QAAQ,QAAQ,SAAS,WAAW,MAAM;AACvD,MAAa,SAAS,QAAQ,IAAI,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolve } from "./FileUtil-
|
|
2
|
-
import { OptionHolder } from "./OptionHolder-
|
|
1
|
+
import { resolve } from "./FileUtil-Dbvp87_g.js";
|
|
2
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
3
3
|
|
|
4
4
|
//#region src/util/FastlaneOption.ts
|
|
5
5
|
function getAndroidFastlaneOptions() {
|
|
@@ -32,4 +32,4 @@ function getIosFastlaneOptions() {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
export { getAndroidFastlaneOptions, getIosFastlaneOptions };
|
|
35
|
-
//# sourceMappingURL=FastlaneOption-
|
|
35
|
+
//# sourceMappingURL=FastlaneOption-DFukw3tx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FastlaneOption-
|
|
1
|
+
{"version":3,"file":"FastlaneOption-DFukw3tx.js","names":[],"sources":["../src/util/FastlaneOption.ts"],"sourcesContent":["import { resolve } from './FileUtil';\nimport { OptionHolder } from './OptionHolder';\n\nexport function getAndroidFastlaneOptions() {\n return [\n ...Object.entries(OptionHolder.keyholderMap).map(([k, v]) => `${k}:${v}`),\n `json_key:${resolve(OptionHolder.keyDir, 'android_play_console_service_account.json')}`,\n `version_name:${OptionHolder.versionName}`,\n `version_code:${OptionHolder.versionCode}`,\n `upload_metadata:${OptionHolder.input.uploadMetadata}`,\n `upload_screenshot:${OptionHolder.input.uploadScreenshot}`,\n `aab_path:${resolve(OptionHolder.resourcesDir, 'output', 'android', 'aab', 'app-release.aab')}`,\n `apk_path:${resolve(OptionHolder.resourcesDir, 'output', 'android', 'apk', 'app-release.apk')}`,\n `skip_upload_apk:${OptionHolder.input.androidOutput !== 'apk'}`,\n `skip_upload_aab:${OptionHolder.input.androidOutput !== 'aab'}`,\n ];\n}\n\nexport function getIosFastlaneOptions() {\n return [\n ...Object.entries(OptionHolder.keyholderMap).map(([k, v]) => `${k}:${v}`),\n `version_name:${OptionHolder.versionName}`,\n `version_code:${OptionHolder.versionCode}`,\n `api_key_filepath:${resolve(OptionHolder.keyDir, 'ios_app_store_connect_api_key.p8')}`,\n `upload_metadata:${OptionHolder.input.uploadMetadata}`,\n `upload_screenshot:${OptionHolder.input.uploadScreenshot}`,\n `ipa_path:${resolve(OptionHolder.resourcesDir, 'output', 'ios', 'app.ipa')}`,\n `ipa_dir:${resolve(OptionHolder.resourcesDir, 'output', 'ios')}`,\n 'ipa_name:app.ipa',\n ];\n}\n"],"mappings":";;;;AAGA,SAAgB,4BAA4B;AAC1C,QAAO;EACL,GAAG,OAAO,QAAQ,aAAa,aAAa,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE;GACxE,WAAW,QAAQ,aAAa,QAAQ,4CAA4C,CAAC;GACrF,eAAe,aAAa,YAAY;GACxC,eAAe,aAAa,YAAY;GACxC,kBAAkB,aAAa,MAAM,eAAe;GACpD,oBAAoB,aAAa,MAAM,iBAAiB;GACxD,WAAW,QAAQ,aAAa,cAAc,UAAU,WAAW,OAAO,kBAAkB,CAAC;GAC7F,WAAW,QAAQ,aAAa,cAAc,UAAU,WAAW,OAAO,kBAAkB,CAAC;GAC7F,kBAAkB,aAAa,MAAM,kBAAkB,MAAM;GAC7D,kBAAkB,aAAa,MAAM,kBAAkB,MAAM;CAC/D;AACF;AAED,SAAgB,wBAAwB;AACtC,QAAO;EACL,GAAG,OAAO,QAAQ,aAAa,aAAa,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE;GACxE,eAAe,aAAa,YAAY;GACxC,eAAe,aAAa,YAAY;GACxC,mBAAmB,QAAQ,aAAa,QAAQ,mCAAmC,CAAC;GACpF,kBAAkB,aAAa,MAAM,eAAe;GACpD,oBAAoB,aAAa,MAAM,iBAAiB;GACxD,WAAW,QAAQ,aAAa,cAAc,UAAU,OAAO,UAAU,CAAC;GAC1E,UAAU,QAAQ,aAAa,cAAc,UAAU,MAAM,CAAC;EAC/D;CACD;AACF"}
|
|
@@ -54,4 +54,4 @@ async function iterateDir(path$1, fn) {
|
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
56
|
export { copy, exist, isDir, isFile, iterateDir, join, move, read, readJsonSlow, readdir, relativePath, remove, resolve, write, writeJson };
|
|
57
|
-
//# sourceMappingURL=FileUtil-
|
|
57
|
+
//# sourceMappingURL=FileUtil-Dbvp87_g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUtil-
|
|
1
|
+
{"version":3,"file":"FileUtil-Dbvp87_g.js","names":["path: string","path","from: string","to: string","p: string","content: string","src: string","dest: string","options?: fs.CopyOptionsSync","options?: fs.MoveOptions","json: any","fn: (file: string) => Promise<void> | void"],"sources":["../src/util/FileUtil.ts"],"sourcesContent":["import * as path from 'node:path';\nimport fs from 'fs-extra';\n\nexport const join = path.join;\nexport const resolve = path.resolve;\n\nexport function exist(path: string) {\n return fs.existsSync(path);\n}\n\nexport function isDir(path: string) {\n return exist(path) && fs.lstatSync(path).isDirectory();\n}\n\nexport function relativePath(from: string, to: string) {\n return path.relative(from, to);\n}\n\nexport function isFile(path: string) {\n return exist(path) && fs.lstatSync(path).isFile();\n}\n\nexport function read(path: string) {\n return fs.readFileSync(path, { encoding: 'utf8' });\n}\n\nexport function readdir(path: string) {\n return fs.readdirSync(path);\n}\n\n// you should require when possible(optimized in js)\nexport function readJsonSlow(path: string) {\n return fs.readJSONSync(path);\n}\n\nexport function write(p: string, content: string) {\n const dir = path.dirname(p);\n if (!exist(dir)) {\n fs.mkdirSync(dir, { recursive: true });\n }\n\n return fs.writeFileSync(p, content);\n}\nexport function copy(src: string, dest: string, options?: fs.CopyOptionsSync) {\n fs.copySync(src, dest, options);\n}\nexport function move(src: string, dest: string, options?: fs.MoveOptions) {\n fs.moveSync(src, dest, options);\n}\n\nexport function writeJson(path: string, json: any) {\n return write(path, JSON.stringify(json, null, 2));\n}\n\nexport function remove(path: string) {\n if (!exist(path)) {\n return;\n }\n\n if (fs.lstatSync(path).isDirectory()) {\n return fs.rmSync(path, { force: true, recursive: true });\n } else {\n return fs.rmSync(path, { force: true });\n }\n}\n\nexport async function iterateDir(path: string, fn: (file: string) => Promise<void> | void) {\n if (!isDir(path)) {\n return;\n }\n\n for (const file of fs.readdirSync(path)) {\n await fn(file);\n }\n}\n"],"mappings":";;;;AAGA,MAAa,OAAO,KAAK;AACzB,MAAa,UAAU,KAAK;AAE5B,SAAgB,MAAMA,QAAc;AAClC,QAAO,GAAG,WAAWC,OAAK;AAC3B;AAED,SAAgB,MAAMD,QAAc;AAClC,QAAO,MAAMC,OAAK,IAAI,GAAG,UAAUA,OAAK,CAAC,aAAa;AACvD;AAED,SAAgB,aAAaC,MAAcC,IAAY;AACrD,QAAO,KAAK,SAAS,MAAM,GAAG;AAC/B;AAED,SAAgB,OAAOH,QAAc;AACnC,QAAO,MAAMC,OAAK,IAAI,GAAG,UAAUA,OAAK,CAAC,QAAQ;AAClD;AAED,SAAgB,KAAKD,QAAc;AACjC,QAAO,GAAG,aAAaC,QAAM,EAAE,UAAU,OAAQ,EAAC;AACnD;AAED,SAAgB,QAAQD,QAAc;AACpC,QAAO,GAAG,YAAYC,OAAK;AAC5B;AAGD,SAAgB,aAAaD,QAAc;AACzC,QAAO,GAAG,aAAaC,OAAK;AAC7B;AAED,SAAgB,MAAMG,GAAWC,SAAiB;CAChD,MAAM,MAAM,KAAK,QAAQ,EAAE;AAC3B,MAAK,MAAM,IAAI,CACb,IAAG,UAAU,KAAK,EAAE,WAAW,KAAM,EAAC;AAGxC,QAAO,GAAG,cAAc,GAAG,QAAQ;AACpC;AACD,SAAgB,KAAKC,KAAaC,MAAcC,SAA8B;AAC5E,IAAG,SAAS,KAAK,MAAM,QAAQ;AAChC;AACD,SAAgB,KAAKF,KAAaC,MAAcE,SAA0B;AACxE,IAAG,SAAS,KAAK,MAAM,QAAQ;AAChC;AAED,SAAgB,UAAUT,QAAcU,MAAW;AACjD,QAAO,MAAMT,QAAM,KAAK,UAAU,MAAM,MAAM,EAAE,CAAC;AAClD;AAED,SAAgB,OAAOD,QAAc;AACnC,MAAK,MAAMC,OAAK,CACd;AAGF,KAAI,GAAG,UAAUA,OAAK,CAAC,aAAa,CAClC,QAAO,GAAG,OAAOA,QAAM;EAAE,OAAO;EAAM,WAAW;CAAM,EAAC;KAExD,QAAO,GAAG,OAAOA,QAAM,EAAE,OAAO,KAAM,EAAC;AAE1C;AAED,eAAsB,WAAWD,QAAcW,IAA4C;AACzF,MAAK,MAAMV,OAAK,CACd;AAGF,MAAK,MAAM,QAAQ,GAAG,YAAYA,OAAK,CACrC,OAAM,GAAG,KAAK;AAEjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionHolder } from "./OptionHolder-
|
|
1
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import { is } from "@mj-studio/js-util";
|
|
4
4
|
import { select } from "@inquirer/prompts";
|
|
@@ -109,4 +109,4 @@ function constructInquirerFormattedMessage({ example, explanation, referUrl, nam
|
|
|
109
109
|
|
|
110
110
|
//#endregion
|
|
111
111
|
export { InqueryInputs, constructInquirerFormattedMessage };
|
|
112
|
-
//# sourceMappingURL=InqueryInputs-
|
|
112
|
+
//# sourceMappingURL=InqueryInputs-D7SBtNYa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InqueryInputs-
|
|
1
|
+
{"version":3,"file":"InqueryInputs-D7SBtNYa.js","names":[],"sources":["../src/util/input/InqueryInputs.ts"],"sourcesContent":["import { select } from '@inquirer/prompts';\nimport { is } from '@mj-studio/js-util';\nimport chalk from 'chalk';\nimport { OptionHolder } from '../OptionHolder';\n\nexport const InqueryInputs = {\n platform: async () => {\n if (!OptionHolder.input.platform) {\n OptionHolder.input.platform = await select({\n message: constructInquirerFormattedMessage({\n name: 'Platform',\n explanation: 'Platform to run action',\n }),\n choices: [\n { name: 'ios', value: 'ios', description: 'Release ios' },\n { name: 'android', value: 'android', description: 'Release android' },\n ],\n });\n }\n },\n podinstall: async () => {\n if (OptionHolder.input.platform === 'ios' && !is.boolean(OptionHolder.input.pod)) {\n OptionHolder.input.pod = await select({\n message: constructInquirerFormattedMessage({\n name: 'Install CocoaPods?',\n }),\n choices: [\n { name: 'yes', value: true, description: 'Install pods before release' },\n { name: 'no', value: false, description: 'Skip pods install' },\n ],\n });\n }\n },\n androidBuildOutput: async () => {\n if (OptionHolder.input.platform === 'android') {\n if (!OptionHolder.input.androidOutput) {\n OptionHolder.input.androidOutput = await select({\n message: constructInquirerFormattedMessage({\n name: 'Android output artifact type',\n }),\n choices: [\n { name: 'aab', value: 'aab', description: 'Build as App bundle' },\n { name: 'apk', value: 'apk', description: 'Build as APK' },\n ],\n });\n }\n }\n },\n uploadMetadata: async () => {\n if (!is.boolean(OptionHolder.input.uploadMetadata)) {\n OptionHolder.input.uploadMetadata = await select({\n message: constructInquirerFormattedMessage({\n name: 'Upload Text Metadata(title, description, ...)',\n }),\n choices: [\n { name: 'yes', value: true, description: 'Upload' },\n { name: 'no', value: false, description: \"Don't Upload\" },\n ],\n });\n }\n },\n uploadScreenshot: async () => {\n if (!is.boolean(OptionHolder.input.uploadScreenshot)) {\n OptionHolder.input.uploadScreenshot = await select({\n message: constructInquirerFormattedMessage({\n name: 'Upload Screenshots & Images',\n }),\n choices: [\n { name: 'yes', value: true, description: 'Upload' },\n { name: 'no', value: false, description: \"Don't Upload\" },\n ],\n });\n }\n },\n useLiveVersionIos: async () => {\n if (\n !is.boolean(OptionHolder.input.useLiveVersionIos) &&\n OptionHolder.input.platform === 'ios'\n ) {\n OptionHolder.input.useLiveVersionIos = await select({\n message: constructInquirerFormattedMessage({\n name: 'Download metadatas from live version rather than draft',\n }),\n choices: [\n { name: 'yes', value: true, description: 'Download from live version' },\n { name: 'no', value: false, description: 'Download from draft' },\n ],\n });\n }\n },\n};\n\nexport function constructInquirerFormattedMessage({\n example,\n explanation,\n referUrl,\n name,\n}: {\n name: string;\n explanation?: string;\n example?: string;\n referUrl?: string;\n}) {\n let ret = `${chalk.bold(name)}`;\n if (explanation) {\n ret += `\\n\\n${chalk.italic.blue(explanation)}`;\n }\n if (example) {\n ret += `\\n${chalk.italic(`${chalk.greenBright('example :')} ${example}`)}`;\n }\n if (referUrl) {\n ret += `\\n${chalk.italic(`${chalk.greenBright('references :')} ${chalk.underline.blue(referUrl)}`)}`;\n }\n\n if (explanation) {\n ret += '\\n';\n if (example || referUrl) {\n ret += '\\n';\n }\n }\n\n return ret;\n}\n"],"mappings":";;;;;;AAKA,MAAa,gBAAgB;CAC3B,UAAU,YAAY;AACpB,OAAK,aAAa,MAAM,SACtB,cAAa,MAAM,WAAW,MAAM,OAAO;GACzC,SAAS,kCAAkC;IACzC,MAAM;IACN,aAAa;GACd,EAAC;GACF,SAAS,CACP;IAAE,MAAM;IAAO,OAAO;IAAO,aAAa;GAAe,GACzD;IAAE,MAAM;IAAW,OAAO;IAAW,aAAa;GAAmB,CACtE;EACF,EAAC;CAEL;CACD,YAAY,YAAY;AACtB,MAAI,aAAa,MAAM,aAAa,UAAU,GAAG,QAAQ,aAAa,MAAM,IAAI,CAC9E,cAAa,MAAM,MAAM,MAAM,OAAO;GACpC,SAAS,kCAAkC,EACzC,MAAM,qBACP,EAAC;GACF,SAAS,CACP;IAAE,MAAM;IAAO,OAAO;IAAM,aAAa;GAA+B,GACxE;IAAE,MAAM;IAAM,OAAO;IAAO,aAAa;GAAqB,CAC/D;EACF,EAAC;CAEL;CACD,oBAAoB,YAAY;A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,KAAK,CAAC;AAC9B,KAAI,YACF,SAAQ,MAAM,MAAM,OAAO,KAAK,YAAY,CAAC;AAE/C,KAAI,QACF,SAAQ,IAAI,MAAM,QAAQ,EAAE,MAAM,YAAY,eAAe,CAAC,GAAG,QAAQ,EAAE,CAAC;AAE9E,KAAI,SACF,SAAQ,IAAI,MAAM,QAAQ,EAAE,MAAM,YAAY,eAAe,CAAC,GAAG,MAAM,UAAU,KAAK,SAAS,CAAC,EAAE,CAAC;AAGrG,KAAI,aAAa;AACf,SAAO;AACP,MAAI,WAAW,SACb,QAAO;CAEV;AAED,QAAO;AACR"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { copy, exist, join, relativePath } from "./FileUtil-
|
|
2
|
-
import { OptionHolder } from "./OptionHolder-
|
|
1
|
+
import { copy, exist, join, relativePath } from "./FileUtil-Dbvp87_g.js";
|
|
2
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
3
3
|
import { logger } from "./logger-DvQ7ScMQ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|
|
@@ -39,4 +39,4 @@ function copyAndroidMetadata(to) {
|
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
41
|
export { copyAndroidMetadata, copyIosMetadata };
|
|
42
|
-
//# sourceMappingURL=MetadataSyncUtil-
|
|
42
|
+
//# sourceMappingURL=MetadataSyncUtil-CEVDtDKU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataSyncUtil-
|
|
1
|
+
{"version":3,"file":"MetadataSyncUtil-CEVDtDKU.js","names":["to: 'resources' | 'native'","to: 'resouces' | 'native'"],"sources":["../src/util/MetadataSyncUtil.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { copy, exist, join, relativePath } from './FileUtil';\nimport { logger } from './logger';\nimport { OptionHolder } from './OptionHolder';\n\nexport function copyIosMetadata(to: 'resources' | 'native') {\n const iosDir = join(OptionHolder.projectDir, 'ios');\n\n const nativeDir = join(iosDir, 'fastlane');\n const metadataNativeDir = join(nativeDir, 'metadata');\n const screenshotsNativeDir = join(nativeDir, 'screenshots');\n\n const resourcesDir = join(OptionHolder.resourcesDir, 'metadata/ios');\n const metadataResourcesDir = join(resourcesDir, 'metadata');\n const screenshotsResourcesDir = join(resourcesDir, 'screenshots');\n\n if (to === 'resources') {\n if (exist(metadataNativeDir) && exist(screenshotsNativeDir)) {\n copy(metadataNativeDir, metadataResourcesDir);\n copy(screenshotsNativeDir, screenshotsResourcesDir);\n\n logger.done(\n `iOS Metadata saved in ${chalk.inverse(relativePath(OptionHolder.projectDir, resourcesDir))}. You can edit inside contents.`,\n );\n } else {\n logger.warn(\n `iOS Metadata not found in ${chalk.inverse(relativePath(OptionHolder.projectDir, nativeDir))}`,\n );\n }\n } else {\n if (exist(metadataResourcesDir) && exist(screenshotsResourcesDir)) {\n copy(metadataResourcesDir, metadataNativeDir);\n copy(screenshotsResourcesDir, screenshotsNativeDir);\n\n logger.done(\n `iOS Metadata copyed to ${chalk.inverse(relativePath(OptionHolder.projectDir, nativeDir))}`,\n );\n } else {\n logger.warn(\n `iOS Metadata not found in ${chalk.inverse(relativePath(OptionHolder.projectDir, resourcesDir))}`,\n );\n }\n }\n}\n\nexport function copyAndroidMetadata(to: 'resouces' | 'native') {\n const androidDir = join(OptionHolder.projectDir, 'android');\n\n const nativeDir = join(androidDir, 'fastlane/metadata/android');\n const resourcesDir = join(OptionHolder.resourcesDir, 'metadata/android');\n\n if (to === 'resouces') {\n if (exist(nativeDir)) {\n copy(nativeDir, resourcesDir);\n logger.done(\n `Android Metadata saved in ${chalk.inverse(relativePath(OptionHolder.projectDir, resourcesDir))}. You can edit inside contents.`,\n );\n } else {\n logger.warn(\n `Android Metadata not found in ${chalk.inverse(relativePath(OptionHolder.projectDir, nativeDir))}`,\n );\n }\n } else {\n if (exist(resourcesDir)) {\n copy(resourcesDir, nativeDir);\n logger.done(\n `Android Metadata copyed to ${chalk.inverse(relativePath(OptionHolder.projectDir, nativeDir))}`,\n );\n } else {\n logger.warn(\n `Android Metadata not found in ${chalk.inverse(relativePath(OptionHolder.projectDir, resourcesDir))}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;AAKA,SAAgB,gBAAgBA,IAA4B;CAC1D,MAAM,SAAS,KAAK,aAAa,YAAY,MAAM;CAEnD,MAAM,YAAY,KAAK,QAAQ,WAAW;CAC1C,MAAM,oBAAoB,KAAK,WAAW,WAAW;CACrD,MAAM,uBAAuB,KAAK,WAAW,cAAc;CAE3D,MAAM,eAAe,KAAK,aAAa,cAAc,eAAe;CACpE,MAAM,uBAAuB,KAAK,cAAc,WAAW;CAC3D,MAAM,0BAA0B,KAAK,cAAc,cAAc;AAEjE,KAAI,OAAO,YACT,KAAI,MAAM,kBAAkB,IAAI,MAAM,qBAAqB,EAAE;AAC3D,OAAK,mBAAmB,qBAAqB;AAC7C,OAAK,sBAAsB,wBAAwB;AAEnD,SAAO,MACJ,wBAAwB,MAAM,QAAQ,aAAa,aAAa,YAAY,aAAa,CAAC,CAAC,iCAC7F;CACF,MACC,QAAO,MACJ,4BAA4B,MAAM,QAAQ,aAAa,aAAa,YAAY,UAAU,CAAC,CAAC,EAC9F;UAGC,MAAM,qBAAqB,IAAI,MAAM,wBAAwB,EAAE;AACjE,OAAK,sBAAsB,kBAAkB;AAC7C,OAAK,yBAAyB,qBAAqB;AAEnD,SAAO,MACJ,yBAAyB,MAAM,QAAQ,aAAa,aAAa,YAAY,UAAU,CAAC,CAAC,EAC3F;CACF,MACC,QAAO,MACJ,4BAA4B,MAAM,QAAQ,aAAa,aAAa,YAAY,aAAa,CAAC,CAAC,EACjG;AAGN;AAED,SAAgB,oBAAoBC,IAA2B;CAC7D,MAAM,aAAa,KAAK,aAAa,YAAY,UAAU;CAE3D,MAAM,YAAY,KAAK,YAAY,4BAA4B;CAC/D,MAAM,eAAe,KAAK,aAAa,cAAc,mBAAmB;AAExE,KAAI,OAAO,WACT,KAAI,MAAM,UAAU,EAAE;AACpB,OAAK,WAAW,aAAa;AAC7B,SAAO,MACJ,4BAA4B,MAAM,QAAQ,aAAa,aAAa,YAAY,aAAa,CAAC,CAAC,iCACjG;CACF,MACC,QAAO,MACJ,gCAAgC,MAAM,QAAQ,aAAa,aAAa,YAAY,UAAU,CAAC,CAAC,EAClG;UAGC,MAAM,aAAa,EAAE;AACvB,OAAK,cAAc,UAAU;AAC7B,SAAO,MACJ,6BAA6B,MAAM,QAAQ,aAAa,aAAa,YAAY,UAAU,CAAC,CAAC,EAC/F;CACF,MACC,QAAO,MACJ,gCAAgC,MAAM,QAAQ,aAAa,aAAa,YAAY,aAAa,CAAC,CAAC,EACrG;AAGN"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { resolve } from "./FileUtil-
|
|
1
|
+
import { resolve } from "./FileUtil-Dbvp87_g.js";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "expo-release-it";
|
|
6
6
|
var module = "src/index.ts";
|
|
7
7
|
var type = "module";
|
|
8
|
-
var version = "0.6.
|
|
8
|
+
var version = "0.6.3";
|
|
9
9
|
var license = "MIT";
|
|
10
10
|
var homepage = "https://expo-release-it.mjstudio.net/";
|
|
11
11
|
var repository = "https://github.com/mym0404/expo-release-it";
|
|
@@ -24,13 +24,13 @@ var dependencies = {
|
|
|
24
24
|
"execa": "^9.5.2",
|
|
25
25
|
"fs-extra": "^11.3.0",
|
|
26
26
|
"ora": "^8.2.0",
|
|
27
|
-
"react": "catalog:native",
|
|
28
|
-
"react-native": "catalog:native",
|
|
29
27
|
"semver": "^7.7.1",
|
|
30
28
|
"url": "^0.11.4"
|
|
31
29
|
};
|
|
32
30
|
var devDependencies = {
|
|
33
|
-
"
|
|
31
|
+
"react": "catalog:native",
|
|
32
|
+
"react-native": "catalog:native",
|
|
33
|
+
"@biomejs/biome": "2.0.0",
|
|
34
34
|
"@commitlint/config-conventional": "^19.8.0",
|
|
35
35
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
36
36
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -96,4 +96,4 @@ const OptionHolder = {
|
|
|
96
96
|
|
|
97
97
|
//#endregion
|
|
98
98
|
export { OptionHolder };
|
|
99
|
-
//# sourceMappingURL=OptionHolder-
|
|
99
|
+
//# sourceMappingURL=OptionHolder-e-Xr3Bz7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionHolder-
|
|
1
|
+
{"version":3,"file":"OptionHolder-e-Xr3Bz7.js","names":["OptionHolder: {\n // cli specific options\n cli: {\n // cli version\n version: string;\n // cli project root directory\n rootDir: string;\n // cli template source directory\n templateDir: string;\n };\n input: {\n platform: 'android' | 'ios';\n uploadMetadata: boolean;\n uploadScreenshot: boolean;\n androidOutput: 'apk' | 'aab';\n pod: boolean;\n useLiveVersionIos: boolean;\n semverIncrement: 'major' | 'minor' | 'patch';\n config?: string;\n git: {\n commit?: boolean;\n commitMessage?: string;\n tag?: boolean;\n tagName?: string;\n push?: boolean;\n };\n };\n keyholderMap: {\n ios_app_identifier: string;\n ios_developer_team_id: string;\n ios_match_git_url: string;\n ios_app_store_connect_api_key_id: string;\n ios_app_store_connect_api_key_issuer_id: string;\n ios_xcode_project_target: string;\n ios_match_password: string;\n\n android_keystore_store_password: string;\n android_keystore_key_alias: string;\n android_keystore_key_password: string;\n android_package_name: string;\n };\n templateDirNames: string[];\n // dest project root directory\n projectDir: string;\n // dest project output of init command direcotry\n resourcesDir: string;\n keyDir: string;\n keyholderFilePath: string;\n tempDir: string;\n versionName: string;\n versionCode: string;\n}","pkgJson"],"sources":["../package.json","../src/util/OptionHolder.ts"],"sourcesContent":["{\n \"name\": \"expo-release-it\",\n \"module\": \"src/index.ts\",\n \"type\": \"module\",\n \"version\": \"0.6.3\",\n \"license\": \"MIT\",\n \"homepage\": \"https://expo-release-it.mjstudio.net/\",\n \"repository\": \"https://github.com/mym0404/expo-release-it\",\n \"scripts\": {\n \"build\": \"pnpm build:json-schema-type && tsdown\",\n \"build:json-schema-type\": \"json2ts --input expo-release-it.schema.json --output src/type/ExpoReleaseItConfiguration.d.ts && biome check --fix src/type/ExpoReleaseItConfiguration.d.ts\",\n \"dev\": \"pnpm build && NODE_ENV=development node bin/expo-release-it.mjs\",\n \"release\": \"pnpm build && pnpm run t && release-it && pnpm publish\",\n \"t\": \"lefthook run check\"\n },\n \"dependencies\": {\n \"@inquirer/prompts\": \"^7.4.1\",\n \"@mj-studio/js-util\": \"^1.1.20\",\n \"chalk\": \"^5.4.1\",\n \"commander\": \"^13.1.0\",\n \"execa\": \"^9.5.2\",\n \"fs-extra\": \"^11.3.0\",\n \"ora\": \"^8.2.0\",\n \"semver\": \"^7.7.1\",\n \"url\": \"^0.11.4\"\n },\n \"devDependencies\": {\n \"react\": \"catalog:native\",\n \"react-native\": \"catalog:native\",\n \"@biomejs/biome\": \"2.0.0\",\n \"@commitlint/config-conventional\": \"^19.8.0\",\n \"@release-it/conventional-changelog\": \"^10.0.1\",\n \"@types/fs-extra\": \"^11.0.4\",\n \"@types/semver\": \"^7.7.0\",\n \"json-schema-to-typescript\": \"^15.0.4\",\n \"lefthook\": \"^1.11.11\",\n \"release-it\": \"^19.0.1\",\n \"tiny-glob\": \"^0.2.9\",\n \"tsdown\": \"^0.12.7\",\n \"typescript\": \"catalog:\",\n \"vitest\": \"^3.1.2\"\n },\n \"bin\": \"./bin/expo-release-it.mjs\",\n \"files\": [\n \"build\",\n \"package.json\",\n \"bin\",\n \"template\",\n \"expo-release-it.schema.json\"\n ],\n \"commitlint\": {\n \"extends\": [\n \"@commitlint/config-conventional\"\n ]\n },\n \"packageManager\": \"pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39\"\n}\n","import { fileURLToPath } from 'url';\nimport pkgJson from '../../package.json';\nimport { resolve } from './FileUtil';\n\n/**\n * CLI Comprehensive options\n * Each values can be empty by command and timing.\n */\nexport const OptionHolder: {\n // cli specific options\n cli: {\n // cli version\n version: string;\n // cli project root directory\n rootDir: string;\n // cli template source directory\n templateDir: string;\n };\n input: {\n platform: 'android' | 'ios';\n uploadMetadata: boolean;\n uploadScreenshot: boolean;\n androidOutput: 'apk' | 'aab';\n pod: boolean;\n useLiveVersionIos: boolean;\n semverIncrement: 'major' | 'minor' | 'patch';\n config?: string;\n git: {\n commit?: boolean;\n commitMessage?: string;\n tag?: boolean;\n tagName?: string;\n push?: boolean;\n };\n };\n keyholderMap: {\n ios_app_identifier: string;\n ios_developer_team_id: string;\n ios_match_git_url: string;\n ios_app_store_connect_api_key_id: string;\n ios_app_store_connect_api_key_issuer_id: string;\n ios_xcode_project_target: string;\n ios_match_password: string;\n\n android_keystore_store_password: string;\n android_keystore_key_alias: string;\n android_keystore_key_password: string;\n android_package_name: string;\n };\n templateDirNames: string[];\n // dest project root directory\n projectDir: string;\n // dest project output of init command direcotry\n resourcesDir: string;\n keyDir: string;\n keyholderFilePath: string;\n tempDir: string;\n versionName: string;\n versionCode: string;\n} = {\n cli: {\n version: pkgJson.version,\n rootDir: resolve(fileURLToPath(import.meta.url), '../..'),\n templateDir: resolve(fileURLToPath(import.meta.url), '../../template'),\n },\n input: {\n git: {},\n } as any,\n keyholderMap: {} as any,\n templateDirNames: ['key'],\n projectDir: '',\n resourcesDir: '',\n keyDir: '',\n keyholderFilePath: '',\n versionName: '',\n versionCode: '',\n tempDir: '',\n};\n"],"mappings":";;;;WACU;aACE;WACF;cACG;cACA;eACC;iBACE;cACH;CACT,SAAS;CACT,0BAA0B;CAC1B,OAAO;CACP,WAAW;CACX,KAAK;AACN;mBACe;CACd,qBAAqB;CACrB,sBAAsB;CACtB,SAAS;CACT,aAAa;CACb,SAAS;CACT,YAAY;CACZ,OAAO;CACP,UAAU;CACV,OAAO;AACR;sBACkB;CACjB,SAAS;CACT,gBAAgB;CAChB,kBAAkB;CAClB,mCAAmC;CACnC,sCAAsC;CACtC,mBAAmB;CACnB,iBAAiB;CACjB,6BAA6B;CAC7B,YAAY;CACZ,cAAc;CACd,aAAa;CACb,UAAU;CACV,cAAc;CACd,UAAU;AACX;UACM;YACE;CACP;CACA;CACA;CACA;CACA;AACD;iBACa,EACZ,WAAW,CACT,iCACD,EACF;qBACiB;sBAvDpB;;;;;;;;;;;;;;;AAwDC;;;;;;;;AChDD,MAAaA,eAmDT;CACF,KAAK;EACH,SAASC,gBAAQ;EACjB,SAAS,QAAQ,cAAc,OAAO,KAAK,IAAI,EAAE,QAAQ;EACzD,aAAa,QAAQ,cAAc,OAAO,KAAK,IAAI,EAAE,iBAAiB;CACvE;CACD,OAAO,EACL,KAAK,CAAE,EACR;CACD,cAAc,CAAE;CAChB,kBAAkB,CAAC,KAAM;CACzB,YAAY;CACZ,cAAc;CACd,QAAQ;CACR,mBAAmB;CACnB,aAAa;CACb,aAAa;CACb,SAAS;AACV"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { read, readJsonSlow, readdir, resolve, write, writeJson } from "./FileUtil-
|
|
2
|
-
import { OptionHolder } from "./OptionHolder-
|
|
3
|
-
import { throwError } from "./throwError-
|
|
1
|
+
import { read, readJsonSlow, readdir, resolve, write, writeJson } from "./FileUtil-Dbvp87_g.js";
|
|
2
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
3
|
+
import { throwError } from "./throwError-bsy4sijK.js";
|
|
4
4
|
import { padZero } from "@mj-studio/js-util";
|
|
5
5
|
import semver from "semver";
|
|
6
6
|
|
|
7
7
|
//#region src/util/setup/VersionUtil.ts
|
|
8
|
-
const versionNameRegex = () => /const\s+VERSION_NAME\s*?=\s*?['"]([\d
|
|
8
|
+
const versionNameRegex = () => /const\s+VERSION_NAME\s*?=\s*?['"]([\d.]*?)['"]\s*?;?/;
|
|
9
9
|
const versionCodeRegex = () => /const\s+VERSION_CODE\s*?=\s*?(\d+)\s*?;?/;
|
|
10
10
|
async function parseBinaryVersions() {
|
|
11
11
|
const files = readdir(OptionHolder.projectDir);
|
|
@@ -98,4 +98,4 @@ function generateVersionCodeTiedWithVersionName(versionName) {
|
|
|
98
98
|
|
|
99
99
|
//#endregion
|
|
100
100
|
export { checkVersionCodeIsTiedWithVersionName, generateVersionCodeTiedWithVersionName, injectBinaryVersions, parseBinaryVersions };
|
|
101
|
-
//# sourceMappingURL=VersionUtil-
|
|
101
|
+
//# sourceMappingURL=VersionUtil-D-pqgp7e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionUtil-D-pqgp7e.js","names":["filename: string","versionName: string","versionCode: string"],"sources":["../src/util/setup/VersionUtil.ts"],"sourcesContent":["import { padZero } from '@mj-studio/js-util';\nimport semver from 'semver';\nimport { read, readdir, readJsonSlow, resolve, write, writeJson } from '../FileUtil';\nimport { OptionHolder } from '../OptionHolder';\nimport { throwError } from '../throwError';\n\nconst versionNameRegex = () => /const\\s+VERSION_NAME\\s*?=\\s*?['\"]([\\d.]*?)['\"]\\s*?;?/;\nconst versionCodeRegex = () => /const\\s+VERSION_CODE\\s*?=\\s*?(\\d+)\\s*?;?/;\n\nexport async function parseBinaryVersions() {\n const files = readdir(OptionHolder.projectDir);\n\n const jsConfigFiles = ['app.config.ts', 'app.config.js', 'app.config.cjs', 'app.config.mjs'];\n const jsonConfigFile = 'app.json';\n\n for (const jsConfigFile of jsConfigFiles) {\n if (files.includes(jsConfigFile)) {\n await parseFromJsConfigFile(jsConfigFile);\n return;\n }\n }\n\n if (files.includes(jsonConfigFile)) {\n await parseFromJsonConfigFile(jsonConfigFile);\n return;\n }\n\n throwError('expo config file not found');\n\n async function parseFromJsConfigFile(filename: string) {\n const filePath = resolve(OptionHolder.projectDir, filename);\n const content = read(filePath);\n\n const VERSION_NAME = versionNameRegex().exec(content)?.[1];\n const VERSION_CODE = versionCodeRegex().exec(content)?.[1];\n\n if (!VERSION_NAME) {\n throwError('cannot parse version name');\n }\n if (!VERSION_CODE) {\n throwError('cannot parse version code');\n }\n\n if (!semver.valid(VERSION_NAME)) {\n throwError('VERSION_NAME is not a valid semver format');\n }\n\n OptionHolder.versionName = VERSION_NAME;\n OptionHolder.versionCode = VERSION_CODE;\n }\n\n async function parseFromJsonConfigFile(filename: string) {\n const filePath = resolve(OptionHolder.projectDir, filename);\n const json = readJsonSlow(filePath);\n\n const versionName = `${json.expo?.version}`;\n const iosVersionCode = `${json.expo?.ios?.buildNumber}`;\n const androidVersionCode = `${json.expo?.android?.versionCode}`;\n\n if (!/\\d+/.test(iosVersionCode)) {\n throwError('app.json expo.ios.buildNumber is not an integer');\n }\n\n if (!/\\d+/.test(androidVersionCode)) {\n throwError('app.json expo.android.versionCode is not an integer');\n }\n\n if (iosVersionCode !== androidVersionCode) {\n throwError('app.json expo.ios.buildNumber is not equal with expo.android.versionCode');\n }\n\n if (!semver.valid(versionName)) {\n throwError('VERSION_NAME is not a valid semver format');\n }\n\n OptionHolder.versionName = versionName;\n OptionHolder.versionCode = iosVersionCode;\n }\n}\n\nexport async function injectBinaryVersions({\n versionCode,\n versionName,\n}: {\n versionName: string;\n versionCode: string;\n}) {\n const files = readdir(OptionHolder.projectDir);\n\n const jsConfigFiles = ['app.config.ts', 'app.config.js', 'app.config.cjs', 'app.config.mjs'];\n const jsonConfigFile = 'app.json';\n\n for (const jsConfigFile of jsConfigFiles) {\n if (files.includes(jsConfigFile)) {\n await injectToJsConfigFile(jsConfigFile);\n return;\n }\n }\n\n if (files.includes(jsonConfigFile)) {\n await injectToJsonConfigFile(jsonConfigFile);\n return;\n }\n\n throwError('expo config file not found');\n\n async function injectToJsConfigFile(filename: string) {\n const filePath = resolve(OptionHolder.projectDir, filename);\n let content = read(filePath);\n\n content = content.replace(versionNameRegex(), `const VERSION_NAME = '${versionName}';`);\n content = content.replace(versionCodeRegex(), `const VERSION_CODE = ${versionCode};`);\n\n write(filePath, content);\n }\n\n async function injectToJsonConfigFile(filename: string) {\n const filePath = resolve(OptionHolder.projectDir, filename);\n const json = readJsonSlow(filePath);\n\n json.expo.version = versionName;\n json.expo.ios.buildNumber = versionCode;\n json.expo.android.versionCode = +versionCode;\n\n writeJson(filePath, json);\n }\n}\n\nexport function checkVersionCodeIsTiedWithVersionName(\n versionName: string,\n versionCode: string,\n): boolean {\n if (!semver.valid(versionName)) return false;\n return generateVersionCodeTiedWithVersionName(versionName) === versionCode;\n}\n\nexport function generateVersionCodeTiedWithVersionName(versionName: string) {\n if (!semver.valid(versionName))\n throwError(\n 'Version Name is not a valid semver format when running `generateVersionCodeTiedWithVersionName`',\n );\n const major = semver.major(versionName);\n const minor = semver.minor(versionName);\n const patch = semver.patch(versionName);\n\n return `${major}${padZero(minor, 3)}${padZero(patch, 3)}`;\n}\n"],"mappings":";;;;;;;AAMA,MAAM,mBAAmB,MAAM;AAC/B,MAAM,mBAAmB,MAAM;AAE/B,eAAsB,sBAAsB;CAC1C,MAAM,QAAQ,QAAQ,aAAa,WAAW;CAE9C,MAAM,gBAAgB;EAAC;EAAiB;EAAiB;EAAkB;CAAiB;CAC5F,MAAM,iBAAiB;AAEvB,MAAK,MAAM,gBAAgB,cACzB,KAAI,MAAM,SAAS,aAAa,EAAE;AAChC,QAAM,sBAAsB,aAAa;AACzC;CACD;AAGH,KAAI,MAAM,SAAS,eAAe,EAAE;AAClC,QAAM,wBAAwB,eAAe;AAC7C;CACD;AAED,YAAW,6BAA6B;CAExC,eAAe,sBAAsBA,UAAkB;EACrD,MAAM,WAAW,QAAQ,aAAa,YAAY,SAAS;EAC3D,MAAM,UAAU,KAAK,SAAS;EAE9B,MAAM,eAAe,kBAAkB,CAAC,KAAK,QAAQ,GAAG;EACxD,MAAM,eAAe,kBAAkB,CAAC,KAAK,QAAQ,GAAG;AAExD,OAAK,aACH,YAAW,4BAA4B;AAEzC,OAAK,aACH,YAAW,4BAA4B;AAGzC,OAAK,OAAO,MAAM,aAAa,CAC7B,YAAW,4CAA4C;AAGzD,eAAa,cAAc;AAC3B,eAAa,cAAc;CA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K,KAAK,UAAU;AACpB,OAAK,KAAK,IAAI,cAAc;AAC5B,OAAK,KAAK,QAAQ,eAAe;AAEjC,YAAU,UAAU,KAAK;CAC1B;AACF;AAED,SAAgB,sCACdC,aACAC,aACS;AACT,MAAK,OAAO,MAAM,YAAY,CAAE,QAAO;AACvC,QAAO,uCAAuC,YAAY,KAAK;AAChE;AAED,SAAgB,uCAAuCD,aAAqB;AAC1E,MAAK,OAAO,MAAM,YAAY,CAC5B,YACE,kGACD;CACH,MAAM,QAAQ,OAAO,MAAM,YAAY;CACvC,MAAM,QAAQ,OAAO,MAAM,YAAY;CACvC,MAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,SAAQ,EAAE,MAAM,EAAE,QAAQ,OAAO,EAAE,CAAC,EAAE,QAAQ,OAAO,EAAE,CAAC;AACzD"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { InqueryInputs } from "./InqueryInputs-
|
|
1
|
+
import { calculateElapsed } from "./calculateElapsed-DORWymX3.js";
|
|
2
|
+
import { isWin } from "./EnvUtil-C6QbCIoV.js";
|
|
3
|
+
import { copy, relativePath, remove, resolve } from "./FileUtil-Dbvp87_g.js";
|
|
4
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
5
|
+
import { getIosFastlaneOptions } from "./FastlaneOption-DFukw3tx.js";
|
|
6
|
+
import { InqueryInputs } from "./InqueryInputs-D7SBtNYa.js";
|
|
7
7
|
import { logger } from "./logger-DvQ7ScMQ.js";
|
|
8
8
|
import { exe } from "./execShellScript-Bd5xbFX5.js";
|
|
9
|
-
import { prepareAndroid } from "./prepareAndroid-
|
|
10
|
-
import { prepareIos } from "./prepareIos-
|
|
11
|
-
import { setup } from "./setup-
|
|
9
|
+
import { prepareAndroid } from "./prepareAndroid-DvpyJp29.js";
|
|
10
|
+
import { prepareIos } from "./prepareIos-CPEUN3NP.js";
|
|
11
|
+
import { setup } from "./setup-B5f8yFb5.js";
|
|
12
12
|
import chalk from "chalk";
|
|
13
13
|
|
|
14
14
|
//#region src/command/build.ts
|
|
@@ -85,4 +85,4 @@ async function buildAndroid() {
|
|
|
85
85
|
|
|
86
86
|
//#endregion
|
|
87
87
|
export { build };
|
|
88
|
-
//# sourceMappingURL=build-
|
|
88
|
+
//# sourceMappingURL=build-mrbmjpTj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-
|
|
1
|
+
{"version":3,"file":"build-mrbmjpTj.js","names":["buildOutputDir: string","outputDir: string"],"sources":["../src/command/build.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { calculateElapsed } from '../util/calculateElapsed';\nimport { isWin } from '../util/EnvUtil';\nimport { getIosFastlaneOptions } from '../util/FastlaneOption';\nimport { copy, relativePath, remove, resolve } from '../util/FileUtil';\nimport { InqueryInputs } from '../util/input/InqueryInputs';\nimport { logger } from '../util/logger';\nimport { OptionHolder } from '../util/OptionHolder';\nimport { exe } from '../util/setup/execShellScript';\nimport { prepareAndroid } from '../util/setup/prepareAndroid';\nimport { prepareIos } from '../util/setup/prepareIos';\nimport { setup } from '../util/setup/setup';\n\nexport async function build({ options }: { options: any }) {\n Object.assign(OptionHolder.input, options);\n const startTime = Date.now();\n await setup();\n await promptInputs();\n\n logger.info('Build Started');\n\n if (OptionHolder.input.platform === 'ios') {\n await buildIos();\n logger.success(`iOS Build ${chalk.bold.inverse(calculateElapsed(startTime))}`);\n } else {\n await buildAndroid();\n logger.success(`Android Build ${chalk.bold.inverse(calculateElapsed(startTime))}`);\n }\n}\n\nasync function promptInputs() {\n await InqueryInputs.platform();\n await InqueryInputs.podinstall();\n await InqueryInputs.androidBuildOutput();\n}\n\nasync function buildIos() {\n const iosDir = resolve(OptionHolder.projectDir, 'ios');\n const exeEnv = exe({\n cwd: iosDir,\n env: {\n MATCH_PASSWORD: OptionHolder.keyholderMap.ios_match_password,\n },\n });\n await prepareIos();\n await fastlane();\n\n async function fastlane() {\n if (OptionHolder.input.pod) {\n await exeEnv('bundle', ['exec', 'pod', 'install']);\n logger.done('Pod Install');\n }\n remove(resolve(iosDir, '.xcode.env.local'));\n\n await exeEnv('bundle', ['exec', 'fastlane', 'build', ...getIosFastlaneOptions()]);\n\n logger.success(\n `artifact generated: ${relativePath(OptionHolder.projectDir, resolve(OptionHolder.resourcesDir, 'output', 'ios', 'app.ipa'))}`,\n );\n }\n}\nasync function buildAndroid() {\n const androidDir = resolve(OptionHolder.projectDir, 'android');\n const exeEnv = exe({\n cwd: androidDir,\n });\n await prepareAndroid();\n await fastlane();\n\n async function fastlane() {\n let buildOutputDir: string;\n let outputDir: string;\n\n if (OptionHolder.input.androidOutput === 'aab') {\n // aab: app/build/outputs/bundle/release/app-release.aab\n await exeEnv(isWin ? 'gradle.bat' : './gradlew', ['app:bundleRelease']);\n logger.done('Bundle AAB');\n buildOutputDir = resolve(androidDir, 'app', 'build', 'outputs', 'bundle', 'release');\n outputDir = resolve(OptionHolder.resourcesDir, 'output', 'android', 'aab');\n } else {\n // apk: app/build/outputs/apk/release/app-release.apk\n await exeEnv(isWin ? 'gradle.bat' : './gradlew', ['app:assembleRelease']);\n logger.done('Assemble APK');\n buildOutputDir = resolve(androidDir, 'app', 'build', 'outputs', 'apk', 'release');\n outputDir = resolve(OptionHolder.resourcesDir, 'output', 'android', 'apk');\n }\n\n remove(outputDir);\n copy(buildOutputDir, outputDir);\n\n logger.success(`artifact generated: ${relativePath(OptionHolder.projectDir, outputDir)}`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,eAAsB,MAAM,EAAE,SAA2B,EAAE;AACzD,QAAO,OAAO,aAAa,OAAO,QAAQ;CAC1C,MAAM,YAAY,KAAK,KAAK;AAC5B,OAAM,OAAO;AACb,OAAM,cAAc;AAEpB,QAAO,KAAK,gBAAgB;AAE5B,KAAI,aAAa,MAAM,aAAa,OAAO;AACzC,QAAM,UAAU;AA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AQ,aAAa,cAAc,UAAU,WAAW,MAAM;EAC3E,OAAM;AAEL,SAAM,OAAO,QAAQ,eAAe,aAAa,CAAC,qBAAsB,EAAC;AACzE,UAAO,KAAK,eAAe;AAC3B,oBAAiB,QAAQ,YAAY,OAAO,SAAS,WAAW,OAAO,UAAU;AACjF,eAAY,QAAQ,aAAa,cAAc,UAAU,WAAW,MAAM;EAC3E;AAED,SAAO,UAAU;AACjB,OAAK,gBAAgB,UAAU;AAE/B,SAAO,SAAS,sBAAsB,aAAa,aAAa,YAAY,UAAU,CAAC,EAAE;CAC1F;AACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isDev } from "./EnvUtil-
|
|
2
|
-
import { OptionHolder } from "./OptionHolder-
|
|
3
|
-
import { constructInquirerFormattedMessage } from "./InqueryInputs-
|
|
1
|
+
import { isDev } from "./EnvUtil-C6QbCIoV.js";
|
|
2
|
+
import { OptionHolder } from "./OptionHolder-e-Xr3Bz7.js";
|
|
3
|
+
import { constructInquirerFormattedMessage } from "./InqueryInputs-D7SBtNYa.js";
|
|
4
4
|
import { logger } from "./logger-DvQ7ScMQ.js";
|
|
5
5
|
import { exe } from "./execShellScript-Bd5xbFX5.js";
|
|
6
|
-
import { throwError } from "./throwError-
|
|
7
|
-
import { checkVersionCodeIsTiedWithVersionName, generateVersionCodeTiedWithVersionName, injectBinaryVersions } from "./VersionUtil-
|
|
8
|
-
import { setup } from "./setup-
|
|
6
|
+
import { throwError } from "./throwError-bsy4sijK.js";
|
|
7
|
+
import { checkVersionCodeIsTiedWithVersionName, generateVersionCodeTiedWithVersionName, injectBinaryVersions } from "./VersionUtil-D-pqgp7e.js";
|
|
8
|
+
import { setup } from "./setup-B5f8yFb5.js";
|
|
9
9
|
import { is } from "@mj-studio/js-util";
|
|
10
10
|
import { select } from "@inquirer/prompts";
|
|
11
11
|
import semver from "semver";
|
|
@@ -119,4 +119,4 @@ async function promptTagAndPush({ nextVersionCode, nextVersionName }) {
|
|
|
119
119
|
|
|
120
120
|
//#endregion
|
|
121
121
|
export { bump };
|
|
122
|
-
//# sourceMappingURL=bump-
|
|
122
|
+
//# sourceMappingURL=bump-BSFUo4Lw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bump-
|
|
1
|
+
{"version":3,"file":"bump-BSFUo4Lw.js","names":[],"sources":["../src/command/bump.ts"],"sourcesContent":["import { select } from '@inquirer/prompts';\nimport { is } from '@mj-studio/js-util';\nimport semver from 'semver';\nimport { isDev } from '../util/EnvUtil';\nimport { constructInquirerFormattedMessage } from '../util/input/InqueryInputs';\nimport { logger } from '../util/logger';\nimport { OptionHolder } from '../util/OptionHolder';\nimport { exe } from '../util/setup/execShellScript';\nimport { setup } from '../util/setup/setup';\nimport {\n checkVersionCodeIsTiedWithVersionName,\n generateVersionCodeTiedWithVersionName,\n injectBinaryVersions,\n} from '../util/setup/VersionUtil';\nimport { throwError } from '../util/throwError';\n\nexport async function bump({ options }: { options: any }) {\n Object.assign(OptionHolder.input, options);\n await preCheck();\n await setup();\n\n const nextVersionName = semver.inc(OptionHolder.versionName, OptionHolder.input.semverIncrement)!;\n const nextVersionCode = (() => {\n if (checkVersionCodeIsTiedWithVersionName(OptionHolder.versionName, OptionHolder.versionCode)) {\n return generateVersionCodeTiedWithVersionName(nextVersionName);\n } else {\n logger.warn(\n 'version name is not tied with version code like (1.3.5=1003005). Version code is just incremented by 1.',\n );\n return `${Number(OptionHolder.versionCode) + 1}`;\n }\n })();\n\n logger.info(`Next Version: ${nextVersionName}(${nextVersionCode})`);\n\n await injectBinaryVersions({ versionName: nextVersionName, versionCode: nextVersionCode });\n logger.success('Binary versions have been bumped in expo config file');\n\n await processCommit({ nextVersionName, nextVersionCode });\n if (OptionHolder.input.git.commit) {\n await promptTagAndPush({ nextVersionName, nextVersionCode });\n }\n}\n\nasync function preCheck() {\n if (isDev) return;\n try {\n let hasChange = false;\n try {\n await exe('git', ['diff', '--quiet', 'HEAD']);\n } catch (_) {\n hasChange = true;\n }\n if (hasChange) {\n throwError('Workspace is not clean. Before bump version, you should commit all changes.');\n }\n } catch (e) {\n throwError('Precheck Failed', e);\n }\n}\n\nasync function processCommit({\n nextVersionCode,\n nextVersionName,\n}: {\n nextVersionName: string;\n nextVersionCode: string;\n}) {\n if (!is.boolean(OptionHolder.input.git.commit)) {\n OptionHolder.input.git.commit = await select({\n message: constructInquirerFormattedMessage({ name: 'Commit?' }),\n choices: [\n { name: 'yes', value: true },\n { name: 'no', value: false },\n ],\n });\n }\n if (!is.notEmptyString(OptionHolder.input.git.commitMessage)) {\n OptionHolder.input.git.commitMessage = 'chore: release $(version) 🚀';\n }\n\n if (OptionHolder.input.git.commit) {\n await exe('git', ['add', '--all']);\n await exe('git', [\n 'commit',\n '-m',\n OptionHolder.input.git.commitMessage!.replaceAll(\n '$(version)',\n `${nextVersionName}(${nextVersionCode})`,\n ),\n ]);\n }\n}\n\nasync function promptTagAndPush({\n nextVersionCode,\n nextVersionName,\n}: {\n nextVersionName: string;\n nextVersionCode: string;\n}) {\n if (!is.boolean(OptionHolder.input.git.tag)) {\n OptionHolder.input.git.tag = await select({\n message: constructInquirerFormattedMessage({ name: 'Tag?' }),\n choices: [\n { name: 'yes', value: true },\n { name: 'no', value: false },\n ],\n });\n }\n if (!is.notEmptyString(OptionHolder.input.git.tagName)) {\n OptionHolder.input.git.tagName = 'v$(version)';\n }\n\n const tagName = OptionHolder.input.git.tagName!.replaceAll(\n '$(version)',\n `${nextVersionName}(${nextVersionCode})`,\n );\n\n if (OptionHolder.input.git.tag) {\n await exe('git', ['tag', '-a', tagName, '-m', tagName]);\n }\n\n if (!is.boolean(OptionHolder.input.git.push)) {\n OptionHolder.input.git.push = await select({\n message: constructInquirerFormattedMessage({ name: 'Push?' }),\n choices: [\n { name: 'yes', value: true },\n { name: 'no', value: false },\n ],\n });\n }\n\n if (OptionHolder.input.git.push) {\n if (OptionHolder.input.git.tag) {\n await exe('git', ['push', 'origin', tagName]);\n }\n await exe('git', ['push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AAO,CAAC,MAAO,EAAC;CAC3B;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateElapsed-
|
|
1
|
+
{"version":3,"file":"calculateElapsed-DORWymX3.js","names":["t: number"],"sources":["../src/util/calculateElapsed.ts"],"sourcesContent":["import { padZero } from '@mj-studio/js-util';\n\nexport function calculateElapsed(t: number) {\n let seconds = Math.floor((Date.now() - t) / 1000);\n const minutes = Math.floor(seconds / 60);\n seconds = seconds % 60;\n return `${minutes}:${padZero(seconds)}`;\n}\n"],"mappings":";;;AAEA,SAAgB,iBAAiBA,GAAW;CAC1C,IAAI,UAAU,KAAK,OAAO,KAAK,KAAK,GAAG,KAAK,IAAK;CACjD,MAAM,UAAU,KAAK,MAAM,UAAU,GAAG;AACxC,WAAU,UAAU;AACpB,SAAQ,EAAE,QAAQ,GAAG,QAAQ,QAAQ,CAAC;AACvC"}
|
package/build/command/build.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../InqueryInputs-
|
|
1
|
+
import "../calculateElapsed-DORWymX3.js";
|
|
2
|
+
import "../EnvUtil-C6QbCIoV.js";
|
|
3
|
+
import "../FileUtil-Dbvp87_g.js";
|
|
4
|
+
import "../OptionHolder-e-Xr3Bz7.js";
|
|
5
|
+
import "../FastlaneOption-DFukw3tx.js";
|
|
6
|
+
import "../InqueryInputs-D7SBtNYa.js";
|
|
7
7
|
import "../logger-DvQ7ScMQ.js";
|
|
8
8
|
import "../execShellScript-Bd5xbFX5.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
9
|
+
import "../iterateAllFiles-CcRtjpos.js";
|
|
10
|
+
import "../injectTemplatePlaceHolders-zAbDtdQ3.js";
|
|
11
|
+
import "../MetadataSyncUtil-CEVDtDKU.js";
|
|
12
12
|
import "../replaceStringIfNotContain-CgZ460_D.js";
|
|
13
13
|
import "../spinner-BVmbE9I_.js";
|
|
14
|
-
import "../prepareAndroid-
|
|
15
|
-
import "../prepareIos-
|
|
16
|
-
import "../parseConfigFile-
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import "../
|
|
20
|
-
import "../setup-
|
|
21
|
-
import { build } from "../build-
|
|
14
|
+
import "../prepareAndroid-DvpyJp29.js";
|
|
15
|
+
import "../prepareIos-CPEUN3NP.js";
|
|
16
|
+
import "../parseConfigFile-DPW8ByX1.js";
|
|
17
|
+
import "../hydrateKeyholderFileValues-DGhfFdMP.js";
|
|
18
|
+
import "../throwError-bsy4sijK.js";
|
|
19
|
+
import "../VersionUtil-D-pqgp7e.js";
|
|
20
|
+
import "../setup-B5f8yFb5.js";
|
|
21
|
+
import { build } from "../build-mrbmjpTj.js";
|
|
22
22
|
|
|
23
23
|
export { build };
|
package/build/command/bump.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../EnvUtil-
|
|
2
|
-
import "../FileUtil-
|
|
3
|
-
import "../OptionHolder-
|
|
4
|
-
import "../InqueryInputs-
|
|
1
|
+
import "../EnvUtil-C6QbCIoV.js";
|
|
2
|
+
import "../FileUtil-Dbvp87_g.js";
|
|
3
|
+
import "../OptionHolder-e-Xr3Bz7.js";
|
|
4
|
+
import "../InqueryInputs-D7SBtNYa.js";
|
|
5
5
|
import "../logger-DvQ7ScMQ.js";
|
|
6
6
|
import "../execShellScript-Bd5xbFX5.js";
|
|
7
|
-
import "../parseConfigFile-
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../setup-
|
|
12
|
-
import { bump } from "../bump-
|
|
7
|
+
import "../parseConfigFile-DPW8ByX1.js";
|
|
8
|
+
import "../hydrateKeyholderFileValues-DGhfFdMP.js";
|
|
9
|
+
import "../throwError-bsy4sijK.js";
|
|
10
|
+
import "../VersionUtil-D-pqgp7e.js";
|
|
11
|
+
import "../setup-B5f8yFb5.js";
|
|
12
|
+
import { bump } from "../bump-BSFUo4Lw.js";
|
|
13
13
|
|
|
14
14
|
export { bump };
|
package/build/command/init.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../EnvUtil-
|
|
2
|
-
import "../FileUtil-
|
|
3
|
-
import "../OptionHolder-
|
|
4
|
-
import "../InqueryInputs-
|
|
1
|
+
import "../EnvUtil-C6QbCIoV.js";
|
|
2
|
+
import "../FileUtil-Dbvp87_g.js";
|
|
3
|
+
import "../OptionHolder-e-Xr3Bz7.js";
|
|
4
|
+
import "../InqueryInputs-D7SBtNYa.js";
|
|
5
5
|
import "../logger-DvQ7ScMQ.js";
|
|
6
|
-
import "../parseConfigFile-
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../setup-
|
|
11
|
-
import { init } from "../init-
|
|
6
|
+
import "../parseConfigFile-DPW8ByX1.js";
|
|
7
|
+
import "../hydrateKeyholderFileValues-DGhfFdMP.js";
|
|
8
|
+
import "../throwError-bsy4sijK.js";
|
|
9
|
+
import "../VersionUtil-D-pqgp7e.js";
|
|
10
|
+
import "../setup-B5f8yFb5.js";
|
|
11
|
+
import { init } from "../init-cpcJN2Kq.js";
|
|
12
12
|
|
|
13
13
|
export { init };
|
package/build/command/pull.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../EnvUtil-
|
|
2
|
-
import "../FileUtil-
|
|
3
|
-
import "../OptionHolder-
|
|
4
|
-
import "../InqueryInputs-
|
|
1
|
+
import "../EnvUtil-C6QbCIoV.js";
|
|
2
|
+
import "../FileUtil-Dbvp87_g.js";
|
|
3
|
+
import "../OptionHolder-e-Xr3Bz7.js";
|
|
4
|
+
import "../InqueryInputs-D7SBtNYa.js";
|
|
5
5
|
import "../logger-DvQ7ScMQ.js";
|
|
6
6
|
import "../execShellScript-Bd5xbFX5.js";
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
7
|
+
import "../iterateAllFiles-CcRtjpos.js";
|
|
8
|
+
import "../injectTemplatePlaceHolders-zAbDtdQ3.js";
|
|
9
|
+
import "../MetadataSyncUtil-CEVDtDKU.js";
|
|
10
10
|
import "../replaceStringIfNotContain-CgZ460_D.js";
|
|
11
11
|
import "../spinner-BVmbE9I_.js";
|
|
12
|
-
import "../prepareAndroid-
|
|
13
|
-
import "../prepareIos-
|
|
14
|
-
import "../parseConfigFile-
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../setup-
|
|
19
|
-
import "../generateAppStoreConnectApiKeyFile-
|
|
20
|
-
import { pull } from "../pull-
|
|
12
|
+
import "../prepareAndroid-DvpyJp29.js";
|
|
13
|
+
import "../prepareIos-CPEUN3NP.js";
|
|
14
|
+
import "../parseConfigFile-DPW8ByX1.js";
|
|
15
|
+
import "../hydrateKeyholderFileValues-DGhfFdMP.js";
|
|
16
|
+
import "../throwError-bsy4sijK.js";
|
|
17
|
+
import "../VersionUtil-D-pqgp7e.js";
|
|
18
|
+
import "../setup-B5f8yFb5.js";
|
|
19
|
+
import "../generateAppStoreConnectApiKeyFile-CWW5uiwQ.js";
|
|
20
|
+
import { pull } from "../pull-CozZb8WP.js";
|
|
21
21
|
|
|
22
22
|
export { pull };
|
package/build/command/submit.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../InqueryInputs-
|
|
1
|
+
import "../calculateElapsed-DORWymX3.js";
|
|
2
|
+
import "../EnvUtil-C6QbCIoV.js";
|
|
3
|
+
import "../FileUtil-Dbvp87_g.js";
|
|
4
|
+
import "../OptionHolder-e-Xr3Bz7.js";
|
|
5
|
+
import "../FastlaneOption-DFukw3tx.js";
|
|
6
|
+
import "../InqueryInputs-D7SBtNYa.js";
|
|
7
7
|
import "../logger-DvQ7ScMQ.js";
|
|
8
8
|
import "../execShellScript-Bd5xbFX5.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
9
|
+
import "../iterateAllFiles-CcRtjpos.js";
|
|
10
|
+
import "../injectTemplatePlaceHolders-zAbDtdQ3.js";
|
|
11
|
+
import "../MetadataSyncUtil-CEVDtDKU.js";
|
|
12
12
|
import "../replaceStringIfNotContain-CgZ460_D.js";
|
|
13
13
|
import "../spinner-BVmbE9I_.js";
|
|
14
|
-
import "../prepareAndroid-
|
|
15
|
-
import "../prepareIos-
|
|
16
|
-
import "../parseConfigFile-
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import "../
|
|
20
|
-
import "../setup-
|
|
21
|
-
import { submit } from "../submit-
|
|
14
|
+
import "../prepareAndroid-DvpyJp29.js";
|
|
15
|
+
import "../prepareIos-CPEUN3NP.js";
|
|
16
|
+
import "../parseConfigFile-DPW8ByX1.js";
|
|
17
|
+
import "../hydrateKeyholderFileValues-DGhfFdMP.js";
|
|
18
|
+
import "../throwError-bsy4sijK.js";
|
|
19
|
+
import "../VersionUtil-D-pqgp7e.js";
|
|
20
|
+
import "../setup-B5f8yFb5.js";
|
|
21
|
+
import { submit } from "../submit-B4SQw15M.js";
|
|
22
22
|
|
|
23
23
|
export { submit };
|