@wix/himalaya-cli 0.2037.0 → 0.2038.0
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/dist/cli.mjs +15 -3
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -46609,6 +46609,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
46609
46609
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
46610
46610
|
var init_idiom = __esm({
|
|
46611
46611
|
"../../core/ts/src/idiom.ts"() {
|
|
46612
|
+
"use strict";
|
|
46612
46613
|
init_define_HHP_CATALOG();
|
|
46613
46614
|
IDIOM_CONTEXTS = {
|
|
46614
46615
|
ios: { native: ["ios"] },
|
|
@@ -48378,6 +48379,7 @@ function shouldRevealError(args) {
|
|
|
48378
48379
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
48379
48380
|
var init_validation = __esm({
|
|
48380
48381
|
"../../core/ts/src/validation.ts"() {
|
|
48382
|
+
"use strict";
|
|
48381
48383
|
init_define_HHP_CATALOG();
|
|
48382
48384
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
48383
48385
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -200464,6 +200466,7 @@ __export(gen_native_config_exports, {
|
|
|
200464
200466
|
iosOrientationEnvelope: () => iosOrientationEnvelope,
|
|
200465
200467
|
iosPlanFor: () => iosPlanFor,
|
|
200466
200468
|
iosShellAppliesOrientationMask: () => iosShellAppliesOrientationMask,
|
|
200469
|
+
isSignedForDist: () => isSignedForDist,
|
|
200467
200470
|
kotlinBootSourcesUnder: () => kotlinBootSourcesUnder,
|
|
200468
200471
|
kotlinFilesWithModuleInstall: () => kotlinFilesWithModuleInstall,
|
|
200469
200472
|
legacyImportSourceKinds: () => legacyImportSourceKinds,
|
|
@@ -201299,14 +201302,23 @@ function blockBody(text32, label4) {
|
|
|
201299
201302
|
const e2 = lines2.findIndex((l3) => isEnd(l3, "yaml", label4));
|
|
201300
201303
|
return b3 < 0 || e2 < b3 ? [] : lines2.slice(b3 + 1, e2);
|
|
201301
201304
|
}
|
|
201302
|
-
function
|
|
201305
|
+
function isSignedForDist(projectYml, distBundleId) {
|
|
201306
|
+
if (!distBundleId) return false;
|
|
201307
|
+
const targets = load5(projectYml)?.targets ?? {};
|
|
201308
|
+
const app2 = Object.values(targets).find((t2) => t2?.type === "application");
|
|
201309
|
+
const signed = app2?.settings?.base?.PRODUCT_BUNDLE_IDENTIFIER ?? app2?.settings?.PRODUCT_BUNDLE_IDENTIFIER;
|
|
201310
|
+
return typeof app2?.bundleId === "string" && app2.bundleId !== distBundleId && signed === distBundleId;
|
|
201311
|
+
}
|
|
201312
|
+
function genStoreAdopt(paths2, adopted, check, distBundleId = void 0) {
|
|
201303
201313
|
const out2 = [removeGeneratedManifest(paths2.legacyReleaseManifest, check)];
|
|
201304
201314
|
if (!adopted) {
|
|
201305
201315
|
out2.push(removeGeneratedManifest(paths2.storeManifest, check));
|
|
201306
201316
|
out2.push(applyToFile(paths2.gradle, "slash", LABEL_STORE_ADOPT_GRADLE, (i2) => renderAdoptGradle(void 0, i2), check));
|
|
201307
201317
|
return out2;
|
|
201308
201318
|
}
|
|
201309
|
-
if (existsSync82(paths2.iosYml)) {
|
|
201319
|
+
if (existsSync82(paths2.iosYml) && isSignedForDist(readFileSync91(paths2.iosYml, "utf8"), distBundleId)) {
|
|
201320
|
+
out2.push({ path: paths2.storeSpec, outcome: "skipped" });
|
|
201321
|
+
} else if (existsSync82(paths2.iosYml)) {
|
|
201310
201322
|
const expected = buildStoreSpec(readFileSync91(paths2.iosYml, "utf8"), { adopted });
|
|
201311
201323
|
if (!existsSync82(paths2.storeSpec)) {
|
|
201312
201324
|
out2.push(check ? { path: paths2.storeSpec, outcome: "skipped" } : applyWholeFile(paths2.storeSpec, expected, false));
|
|
@@ -201857,7 +201869,7 @@ function genNativeConfig(app2, opts = {}) {
|
|
|
201857
201869
|
files.push(applyWholeFile(join82(root, "PrivacyInfo.xcprivacy"), renderPrivacyManifest(privacyPlanFor([])), check));
|
|
201858
201870
|
}
|
|
201859
201871
|
}
|
|
201860
|
-
files.push(...genStoreAdopt(storeAdoptPaths(app2), adoptedIdentityOfConfigTs(configTs), check));
|
|
201872
|
+
files.push(...genStoreAdopt(storeAdoptPaths(app2), adoptedIdentityOfConfigTs(configTs), check, process.env.DIST_BUNDLE_ID));
|
|
201861
201873
|
const appNativeCore = check && !dist ? checkNativeCore(app2) : null;
|
|
201862
201874
|
const nativeCore = appNativeCore ? [checkNativeCoreSatellite(), appNativeCore] : void 0;
|
|
201863
201875
|
return { app: app2, buildSet: ids2, files, drift: files.some((f2) => f2.outcome === "drift"), ...nativeCore ? { nativeCore } : {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2038.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "9e56cbca68a48b109c15010e3f7986917ff80a864d4e8583e18a1191"
|
|
86
86
|
}
|