@wix/himalaya-cli 0.1021.0 → 0.1022.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 +75 -66
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -15863,7 +15863,7 @@ var init_contained_dev_module = __esm({
|
|
|
15863
15863
|
|
|
15864
15864
|
// ../../core/dev-server/src/loader.ts
|
|
15865
15865
|
import { resolve as resolve21, basename as basename8, dirname as dirname17 } from "node:path";
|
|
15866
|
-
import { existsSync as existsSync29, readdirSync as readdirSync16, readFileSync as readFileSync28, mkdirSync as mkdirSync13 } from "node:fs";
|
|
15866
|
+
import { existsSync as existsSync29, readdirSync as readdirSync16, readFileSync as readFileSync28, mkdirSync as mkdirSync13, rmSync as rmSync5 } from "node:fs";
|
|
15867
15867
|
import { pathToFileURL as pathToFileURL5, fileURLToPath as fileURLToPath12 } from "node:url";
|
|
15868
15868
|
function resolveWixWebAuthConfig(app) {
|
|
15869
15869
|
const auth = app?.meta.auth;
|
|
@@ -15898,12 +15898,13 @@ function resolveDevEntry(name) {
|
|
|
15898
15898
|
}
|
|
15899
15899
|
return null;
|
|
15900
15900
|
}
|
|
15901
|
-
async function devModuleUrl(entry, dir) {
|
|
15901
|
+
async function devModuleUrl(entry, dir, fresh = false) {
|
|
15902
15902
|
const hasTypeScriptLoader = process.execArgv.some((arg) => arg.includes("tsx"));
|
|
15903
|
-
|
|
15904
|
-
|
|
15903
|
+
const direct = !isOffRepo() && hasTypeScriptLoader;
|
|
15904
|
+
if (direct && !fresh) return { url: pathToFileURL5(entry).href };
|
|
15905
|
+
const out = resolve21(dir, fresh ? `dist/.himi/dev-${process.pid}-${++freshLoads}.mjs` : "dist/.himi/dev.mjs");
|
|
15905
15906
|
mkdirSync13(dirname17(out), { recursive: true });
|
|
15906
|
-
await buildAppEntry(entry, out, {
|
|
15907
|
+
await buildAppEntry(entry, out, direct ? { confineTo: dir } : {
|
|
15907
15908
|
// Plain Node must resolve the published-style umbrella entry points for
|
|
15908
15909
|
// both standalone and in-repo CLI content. In-repo workspace packages
|
|
15909
15910
|
// intentionally point at `.ts` sources, which are only loadable under tsx.
|
|
@@ -15912,15 +15913,23 @@ async function devModuleUrl(entry, dir) {
|
|
|
15912
15913
|
absWorkingDir: dir,
|
|
15913
15914
|
confineTo: dir
|
|
15914
15915
|
});
|
|
15915
|
-
return pathToFileURL5(out).href;
|
|
15916
|
+
return { url: pathToFileURL5(out).href, ...fresh ? { transient: out } : {} };
|
|
15916
15917
|
}
|
|
15917
|
-
async function importDevModule(name, entry, dir) {
|
|
15918
|
-
const module = devModuleRealm() === "contained" ? await loadContainedDevModule(name, entry, dir) :
|
|
15918
|
+
async function importDevModule(name, entry, dir, fresh = false) {
|
|
15919
|
+
const module = devModuleRealm() === "contained" ? await loadContainedDevModule(name, entry, dir) : await importHostDevModule(entry, dir, fresh);
|
|
15919
15920
|
if (!module || !module.config) {
|
|
15920
15921
|
throw new Error(`${entry} must default-export an AppDevModule (got ${typeof module}).`);
|
|
15921
15922
|
}
|
|
15922
15923
|
return { name, module, meta: deriveAppMeta(name, module, readPlatformsJson(dir)), dir };
|
|
15923
15924
|
}
|
|
15925
|
+
async function importHostDevModule(entry, dir, fresh) {
|
|
15926
|
+
const { url, transient } = await devModuleUrl(entry, dir, fresh);
|
|
15927
|
+
try {
|
|
15928
|
+
return (await import(url)).default;
|
|
15929
|
+
} finally {
|
|
15930
|
+
if (transient) rmSync5(transient, { force: true });
|
|
15931
|
+
}
|
|
15932
|
+
}
|
|
15924
15933
|
function readPlatformsJson(dir) {
|
|
15925
15934
|
try {
|
|
15926
15935
|
const raw = JSON.parse(readFileSync28(resolve21(dir, "platforms.json"), "utf8"));
|
|
@@ -15931,7 +15940,7 @@ function readPlatformsJson(dir) {
|
|
|
15931
15940
|
return {};
|
|
15932
15941
|
}
|
|
15933
15942
|
}
|
|
15934
|
-
async function loadContent(dir) {
|
|
15943
|
+
async function loadContent(dir, opts = {}) {
|
|
15935
15944
|
const absDir = resolve21(dir);
|
|
15936
15945
|
const entry = resolve21(absDir, "dev/index.ts");
|
|
15937
15946
|
if (!existsSync29(entry)) {
|
|
@@ -15948,7 +15957,7 @@ async function loadContent(dir) {
|
|
|
15948
15957
|
}
|
|
15949
15958
|
if (typeof manifest.name === "string" && manifest.name) name = manifest.name;
|
|
15950
15959
|
}
|
|
15951
|
-
return importDevModule(name, entry, absDir);
|
|
15960
|
+
return importDevModule(name, entry, absDir, opts.fresh === true);
|
|
15952
15961
|
}
|
|
15953
15962
|
async function tryLoadApp(name) {
|
|
15954
15963
|
const found = resolveDevEntry(name);
|
|
@@ -15980,7 +15989,7 @@ function listAvailableApps() {
|
|
|
15980
15989
|
}
|
|
15981
15990
|
return out;
|
|
15982
15991
|
}
|
|
15983
|
-
var ROOT2, APP_ROOTS2, VALID_PLATFORM_KEYS2;
|
|
15992
|
+
var ROOT2, APP_ROOTS2, freshLoads, VALID_PLATFORM_KEYS2;
|
|
15984
15993
|
var init_loader = __esm({
|
|
15985
15994
|
"../../core/dev-server/src/loader.ts"() {
|
|
15986
15995
|
init_app_module();
|
|
@@ -15989,6 +15998,7 @@ var init_loader = __esm({
|
|
|
15989
15998
|
init_build_lib();
|
|
15990
15999
|
ROOT2 = resolve21(fileURLToPath12(new URL("../../..", import.meta.url)));
|
|
15991
16000
|
APP_ROOTS2 = ["apps", "test-apps"];
|
|
16001
|
+
freshLoads = 0;
|
|
15992
16002
|
VALID_PLATFORM_KEYS2 = /* @__PURE__ */ new Set([
|
|
15993
16003
|
...PREVIEW_SURFACES.map((s) => s.platformKey).filter((k) => k !== null),
|
|
15994
16004
|
...PREVIEW_EXEMPT_PLATFORM_KEYS
|
|
@@ -20020,7 +20030,6 @@ function shouldRevealError(args) {
|
|
|
20020
20030
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
20021
20031
|
var init_validation = __esm({
|
|
20022
20032
|
"../../core/ts/src/validation.ts"() {
|
|
20023
|
-
"use strict";
|
|
20024
20033
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
20025
20034
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
20026
20035
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -23464,7 +23473,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
23464
23473
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
23465
23474
|
var init_worker_subtree = __esm({
|
|
23466
23475
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
23467
|
-
"use strict";
|
|
23468
23476
|
init_worker_subtree_safe_types_generated();
|
|
23469
23477
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
23470
23478
|
maxEncodedBytes: 65536,
|
|
@@ -31877,7 +31885,7 @@ var init_config2 = __esm({
|
|
|
31877
31885
|
// ../../core/dev-server/src/index.ts
|
|
31878
31886
|
import { createServer as createServer2 } from "node:http";
|
|
31879
31887
|
import { readFile, stat } from "node:fs/promises";
|
|
31880
|
-
import { readFileSync as readFileSync39, existsSync as existsSync36, watch, mkdirSync as mkdirSync16, rmSync as
|
|
31888
|
+
import { readFileSync as readFileSync39, existsSync as existsSync36, watch, mkdirSync as mkdirSync16, rmSync as rmSync6 } from "node:fs";
|
|
31881
31889
|
import { extname as extname2, resolve as resolve30, normalize as normalize3, sep as sep7 } from "node:path";
|
|
31882
31890
|
import { createHash as createHash15, randomUUID } from "node:crypto";
|
|
31883
31891
|
import { fileURLToPath as fileURLToPath18, pathToFileURL as pathToFileURL6 } from "node:url";
|
|
@@ -32814,7 +32822,7 @@ async function reloadAppModuleNow(state, opts) {
|
|
|
32814
32822
|
return { ok: false, error };
|
|
32815
32823
|
} finally {
|
|
32816
32824
|
try {
|
|
32817
|
-
|
|
32825
|
+
rmSync6(outfile, { force: true });
|
|
32818
32826
|
} catch {
|
|
32819
32827
|
}
|
|
32820
32828
|
}
|
|
@@ -37942,7 +37950,8 @@ async function liveRenderServices(bundleJs, opts) {
|
|
|
37942
37950
|
});
|
|
37943
37951
|
}
|
|
37944
37952
|
async function buildReleaseFromContent(contentDir2, dest, opts = {}) {
|
|
37945
|
-
|
|
37953
|
+
const { freshModule, ...rest } = opts;
|
|
37954
|
+
return buildFromLoaded(await loadContent(contentDir2, { fresh: freshModule === true }), dest, rest);
|
|
37946
37955
|
}
|
|
37947
37956
|
function readTokensForLint(preloaded) {
|
|
37948
37957
|
try {
|
|
@@ -38902,7 +38911,7 @@ __export(progress_exports, {
|
|
|
38902
38911
|
import { spawn as spawn4 } from "node:child_process";
|
|
38903
38912
|
import { createHash as createHash19 } from "node:crypto";
|
|
38904
38913
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
38905
|
-
import { appendFileSync, closeSync, existsSync as existsSync38, lstatSync as lstatSync5, mkdirSync as mkdirSync17, openSync, readFileSync as readFileSync41, readSync, renameSync as renameSync3, rmSync as
|
|
38914
|
+
import { appendFileSync, closeSync, existsSync as existsSync38, lstatSync as lstatSync5, mkdirSync as mkdirSync17, openSync, readFileSync as readFileSync41, readSync, renameSync as renameSync3, rmSync as rmSync7, statSync as statSync7, writeFileSync as writeFileSync13 } from "node:fs";
|
|
38906
38915
|
import { join as join35, relative as relative5, resolve as resolve32, sep as sep8 } from "node:path";
|
|
38907
38916
|
function parseStep(raw) {
|
|
38908
38917
|
const v = raw.trim().toLowerCase();
|
|
@@ -38960,7 +38969,7 @@ function writeFileAtomic(file, content) {
|
|
|
38960
38969
|
writeFileSync13(tmp, content, { flag: "wx" });
|
|
38961
38970
|
renameSync3(tmp, file);
|
|
38962
38971
|
} catch (e) {
|
|
38963
|
-
|
|
38972
|
+
rmSync7(tmp, { force: true });
|
|
38964
38973
|
throw e;
|
|
38965
38974
|
}
|
|
38966
38975
|
}
|
|
@@ -41069,7 +41078,7 @@ __export(template_trim_exports, {
|
|
|
41069
41078
|
routeMatcher: () => routeMatcher,
|
|
41070
41079
|
runTemplateTrim: () => runTemplateTrim
|
|
41071
41080
|
});
|
|
41072
|
-
import { cpSync, existsSync as existsSync41, mkdirSync as mkdirSync19, readdirSync as readdirSync21, readFileSync as readFileSync45, renameSync as renameSync4, rmSync as
|
|
41081
|
+
import { cpSync, existsSync as existsSync41, mkdirSync as mkdirSync19, readdirSync as readdirSync21, readFileSync as readFileSync45, renameSync as renameSync4, rmSync as rmSync8, statSync as statSync10, writeFileSync as writeFileSync15 } from "node:fs";
|
|
41073
41082
|
import { dirname as dirname23, join as join38 } from "node:path";
|
|
41074
41083
|
function routeMatcher(pattern) {
|
|
41075
41084
|
const detail = /^\^([A-Za-z0-9_]+)\(\?:\[_\/\]\(\.\+\)\)\?\$$/.exec(pattern);
|
|
@@ -41832,11 +41841,11 @@ async function runTemplateTrim(req, deps) {
|
|
|
41832
41841
|
for (const name of [...moved].reverse()) renameSync4(join38(backup, "tier5-src", name), join38(dir, "tier5-src", name));
|
|
41833
41842
|
};
|
|
41834
41843
|
const dropBackup = () => {
|
|
41835
|
-
|
|
41844
|
+
rmSync8(backup, { recursive: true, force: true });
|
|
41836
41845
|
for (const d of [dirname23(backup), join38(dir, ".himi")]) {
|
|
41837
41846
|
if (d === join38(dir, ".himi") && hadHimi) break;
|
|
41838
41847
|
try {
|
|
41839
|
-
if (!readdirSync21(d).length)
|
|
41848
|
+
if (!readdirSync21(d).length) rmSync8(d, { recursive: true });
|
|
41840
41849
|
} catch {
|
|
41841
41850
|
}
|
|
41842
41851
|
}
|
|
@@ -42575,7 +42584,7 @@ __export(pack_exports, {
|
|
|
42575
42584
|
});
|
|
42576
42585
|
import { createHash as createHash21 } from "node:crypto";
|
|
42577
42586
|
import { deflateRawSync, inflateRawSync } from "node:zlib";
|
|
42578
|
-
import { existsSync as existsSync42, mkdirSync as mkdirSync20, readFileSync as readFileSync46, readdirSync as readdirSync22, rmSync as
|
|
42587
|
+
import { existsSync as existsSync42, mkdirSync as mkdirSync20, readFileSync as readFileSync46, readdirSync as readdirSync22, rmSync as rmSync9, statSync as statSync11, writeFileSync as writeFileSync16 } from "node:fs";
|
|
42579
42588
|
import { dirname as dirname24, join as join39, resolve as resolve37 } from "node:path";
|
|
42580
42589
|
function writeZip(entries) {
|
|
42581
42590
|
const sorted2 = entries.slice().sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0);
|
|
@@ -42794,7 +42803,7 @@ function packReleaseToDir(releaseRoot, app, outDir, opts = {}) {
|
|
|
42794
42803
|
const appDir2 = join39(resolve37(releaseRoot), app);
|
|
42795
42804
|
const { all, header, skipped } = buildEntries(appDir2, app, opts);
|
|
42796
42805
|
const dest = resolvePackageDirDest(resolve37(outDir), app, header.releaseId);
|
|
42797
|
-
|
|
42806
|
+
rmSync9(dest, { recursive: true, force: true });
|
|
42798
42807
|
let bytes2 = 0;
|
|
42799
42808
|
for (const entry of all) {
|
|
42800
42809
|
const target = join39(dest, entry.path);
|
|
@@ -42877,7 +42886,7 @@ function unpackTo(buf, dest, appFallback) {
|
|
|
42877
42886
|
if (!isSafeAppId(app)) throw new Error(`package declares an unsafe app id ${JSON.stringify(app)} \u2014 refusing to unpack it`);
|
|
42878
42887
|
const root = resolve37(dest);
|
|
42879
42888
|
const appDir2 = join39(root, app);
|
|
42880
|
-
|
|
42889
|
+
rmSync9(appDir2, { recursive: true, force: true });
|
|
42881
42890
|
for (const [rel, bytes2] of entries) {
|
|
42882
42891
|
const target = join39(appDir2, rel);
|
|
42883
42892
|
mkdirSync20(dirname24(target), { recursive: true });
|
|
@@ -42915,7 +42924,7 @@ __export(app_source_exports, {
|
|
|
42915
42924
|
writeConflicts: () => writeConflicts,
|
|
42916
42925
|
zipAppSource: () => zipAppSource
|
|
42917
42926
|
});
|
|
42918
|
-
import { readdirSync as readdirSync23, lstatSync as lstatSync6, readFileSync as readFileSync47, mkdirSync as mkdirSync21, writeFileSync as writeFileSync17, existsSync as existsSync43, rmSync as
|
|
42927
|
+
import { readdirSync as readdirSync23, lstatSync as lstatSync6, readFileSync as readFileSync47, mkdirSync as mkdirSync21, writeFileSync as writeFileSync17, existsSync as existsSync43, rmSync as rmSync10, rmdirSync, unlinkSync as unlinkSync3 } from "node:fs";
|
|
42919
42928
|
import { join as join40, resolve as resolve38, sep as sep10 } from "node:path";
|
|
42920
42929
|
import { deflateRawSync as deflateRawSync2 } from "node:zlib";
|
|
42921
42930
|
function walkSourceTree(dir, file, skip) {
|
|
@@ -43063,7 +43072,7 @@ function writeConflicts(entries, destDir) {
|
|
|
43063
43072
|
function removeStaleSource(entries, destDir) {
|
|
43064
43073
|
const root = resolve38(destDir);
|
|
43065
43074
|
const removed = staleSourcePaths(entries, root);
|
|
43066
|
-
for (const rel of removed)
|
|
43075
|
+
for (const rel of removed) rmSync10(join40(root, ...rel.split("/")), { force: true });
|
|
43067
43076
|
const needed = /* @__PURE__ */ new Set();
|
|
43068
43077
|
for (const entry of entries) {
|
|
43069
43078
|
if (isDeniedSourcePath(entry.path)) continue;
|
|
@@ -45987,7 +45996,7 @@ __export(native_decode_exports, {
|
|
|
45987
45996
|
runNativeDecode: () => runNativeDecode
|
|
45988
45997
|
});
|
|
45989
45998
|
import { execFileSync as execFileSync5, spawnSync as spawnSync2 } from "node:child_process";
|
|
45990
|
-
import { existsSync as existsSync48, mkdtempSync as mkdtempSync2, readFileSync as readFileSync53, rmSync as
|
|
45999
|
+
import { existsSync as existsSync48, mkdtempSync as mkdtempSync2, readFileSync as readFileSync53, rmSync as rmSync11, writeFileSync as writeFileSync20 } from "node:fs";
|
|
45991
46000
|
import { tmpdir as tmpdir3 } from "node:os";
|
|
45992
46001
|
import { join as join46 } from "node:path";
|
|
45993
46002
|
import { fileURLToPath as fileURLToPath20 } from "node:url";
|
|
@@ -46147,7 +46156,7 @@ function runNativeDecode(options) {
|
|
|
46147
46156
|
const stderr = failure.stderr ? ` \u2014 ${String(failure.stderr).trim().slice(0, 2e3)}` : "";
|
|
46148
46157
|
throw new Error(`iOS decoder oracle failed: ${failure.message}${stderr}`);
|
|
46149
46158
|
} finally {
|
|
46150
|
-
|
|
46159
|
+
rmSync11(descriptorDir, { recursive: true, force: true });
|
|
46151
46160
|
}
|
|
46152
46161
|
}
|
|
46153
46162
|
function runAndroidNativeDecode(options) {
|
|
@@ -46185,7 +46194,7 @@ function runAndroidNativeDecode(options) {
|
|
|
46185
46194
|
const stderr = failure.stderr ? ` \u2014 ${String(failure.stderr).trim().slice(0, 2e3)}` : "";
|
|
46186
46195
|
throw new Error(`Android decoder oracle failed: ${failure.message}${stderr}`);
|
|
46187
46196
|
} finally {
|
|
46188
|
-
|
|
46197
|
+
rmSync11(descriptorDir, { recursive: true, force: true });
|
|
46189
46198
|
}
|
|
46190
46199
|
}
|
|
46191
46200
|
function fieldAt(path2) {
|
|
@@ -48578,21 +48587,21 @@ var init_preview_assets_generated = __esm({
|
|
|
48578
48587
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
48579
48588
|
init_preview_assets_format();
|
|
48580
48589
|
PREVIEW_ASSET_MANIFEST = [
|
|
48581
|
-
{ key: "assets/index-
|
|
48582
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
48583
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
48584
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
48585
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
48586
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
48587
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
48588
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
48589
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
48590
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
48591
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
48592
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
48593
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
48594
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
48595
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
48590
|
+
{ key: "assets/index-FMHX2G25.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1031131, sha256: "0d386640e1979d4c81abbb29ccd0531913f1a759eba2e490160c7d3fac52618d" },
|
|
48591
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 1031139, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
48592
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 1035749, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
48593
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1524333, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
48594
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1615257, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
48595
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1706241, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
48596
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1797221, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
48597
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1888093, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
48598
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 1979073, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
48599
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 2087709, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
48600
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 2196793, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
48601
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 2305841, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
48602
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 2413541, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
48603
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 2501649, length: 4947, sha256: "1f91f02ba75063dd7b2cca2584fcb3cc692f7faf905e89c23bf790633fd3d0e9" },
|
|
48604
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 2506596, length: 17209, sha256: "dffc9718e2faa63ae2cc919e0a842f585ed565aaaa7c53778e90379442c731b6" }
|
|
48596
48605
|
];
|
|
48597
48606
|
}
|
|
48598
48607
|
});
|
|
@@ -48608,7 +48617,7 @@ __export(run_exports, {
|
|
|
48608
48617
|
runPackage: () => runPackage,
|
|
48609
48618
|
withoutProdServe: () => withoutProdServe
|
|
48610
48619
|
});
|
|
48611
|
-
import { cpSync as cpSync2, existsSync as existsSync52, mkdirSync as mkdirSync25, mkdtempSync as mkdtempSync3, readFileSync as readFileSync58, rmSync as
|
|
48620
|
+
import { cpSync as cpSync2, existsSync as existsSync52, mkdirSync as mkdirSync25, mkdtempSync as mkdtempSync3, readFileSync as readFileSync58, rmSync as rmSync12, statSync as statSync13 } from "node:fs";
|
|
48612
48621
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
48613
48622
|
import { dirname as dirname27, join as join50 } from "node:path";
|
|
48614
48623
|
import { fileURLToPath as fileURLToPath22 } from "node:url";
|
|
@@ -48644,7 +48653,7 @@ async function resolvePackage(source, workDir) {
|
|
|
48644
48653
|
const target = join50(root2, app2);
|
|
48645
48654
|
if (join50(source) !== target) {
|
|
48646
48655
|
mkdirSync25(root2, { recursive: true });
|
|
48647
|
-
|
|
48656
|
+
rmSync12(target, { recursive: true, force: true });
|
|
48648
48657
|
cpSync2(source, target, { recursive: true });
|
|
48649
48658
|
}
|
|
48650
48659
|
return {
|
|
@@ -48664,7 +48673,7 @@ async function resolvePackage(source, workDir) {
|
|
|
48664
48673
|
const { app, appDir: appDir2 } = unpackTo(bytes2, root);
|
|
48665
48674
|
const opened = openPackageDir(appDir2);
|
|
48666
48675
|
if (!opened.validation.ok) {
|
|
48667
|
-
|
|
48676
|
+
rmSync12(workDir ? appDir2 : root, { recursive: true, force: true });
|
|
48668
48677
|
throw new Error(`package is not valid:
|
|
48669
48678
|
${opened.validation.errors.join("\n ")}`);
|
|
48670
48679
|
}
|
|
@@ -48711,7 +48720,7 @@ async function runPackage(source, opts = {}) {
|
|
|
48711
48720
|
const resolved2 = await resolvePackage(source, opts.workDir);
|
|
48712
48721
|
const assets = opts.assets ?? (opts.spa ? /* @__PURE__ */ new Map() : await loadPreviewAssets());
|
|
48713
48722
|
if (!opts.spa && assets.size === 0) {
|
|
48714
|
-
if (resolved2.temp)
|
|
48723
|
+
if (resolved2.temp) rmSync12(resolved2.temp, { recursive: true, force: true });
|
|
48715
48724
|
throw new Error(NO_SPA_MESSAGE);
|
|
48716
48725
|
}
|
|
48717
48726
|
const plane = makePackageRunHandler({
|
|
@@ -48747,7 +48756,7 @@ async function runPackage(source, opts = {}) {
|
|
|
48747
48756
|
close: () => new Promise((done) => {
|
|
48748
48757
|
server.closeAllConnections?.();
|
|
48749
48758
|
server.close(() => {
|
|
48750
|
-
if (resolved2.temp)
|
|
48759
|
+
if (resolved2.temp) rmSync12(resolved2.temp, { recursive: true, force: true });
|
|
48751
48760
|
done();
|
|
48752
48761
|
});
|
|
48753
48762
|
})
|
|
@@ -48785,7 +48794,7 @@ __export(run_watch_exports, {
|
|
|
48785
48794
|
watchedContentDir: () => watchedContentDir,
|
|
48786
48795
|
writeRunRecord: () => writeRunRecord
|
|
48787
48796
|
});
|
|
48788
|
-
import { closeSync as closeSync2, constants, existsSync as existsSync53, fstatSync, lstatSync as lstatSync8, statSync as statSync14, mkdirSync as mkdirSync26, openSync as openSync2, readFileSync as readFileSync59, realpathSync as realpathSync6, renameSync as renameSync5, rmSync as
|
|
48797
|
+
import { closeSync as closeSync2, constants, existsSync as existsSync53, fstatSync, lstatSync as lstatSync8, statSync as statSync14, mkdirSync as mkdirSync26, openSync as openSync2, readFileSync as readFileSync59, realpathSync as realpathSync6, renameSync as renameSync5, rmSync as rmSync13, writeFileSync as writeFileSync22, watch as fsWatch } from "node:fs";
|
|
48789
48798
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
48790
48799
|
import { extname as extname4, join as join51, resolve as resolve42, sep as sep13 } from "node:path";
|
|
48791
48800
|
function diffReleases(prev, next) {
|
|
@@ -48923,7 +48932,7 @@ function writeRunRecord(dir, record2) {
|
|
|
48923
48932
|
`, { flag: "wx" });
|
|
48924
48933
|
renameSync5(tmp, join51(root, "run.json"));
|
|
48925
48934
|
} catch (e) {
|
|
48926
|
-
|
|
48935
|
+
rmSync13(tmp, { force: true });
|
|
48927
48936
|
throw e;
|
|
48928
48937
|
}
|
|
48929
48938
|
return true;
|
|
@@ -48944,7 +48953,7 @@ function removeRunRecord(dir, owner) {
|
|
|
48944
48953
|
}
|
|
48945
48954
|
if (typeof pid === "number" && pid !== owner) return;
|
|
48946
48955
|
}
|
|
48947
|
-
|
|
48956
|
+
rmSync13(join51(root, "run.json"), { force: true });
|
|
48948
48957
|
}
|
|
48949
48958
|
function boardFile(dir, pathname) {
|
|
48950
48959
|
let rel = null;
|
|
@@ -60012,7 +60021,7 @@ var init_context = __esm({
|
|
|
60012
60021
|
});
|
|
60013
60022
|
|
|
60014
60023
|
// src/cli.ts
|
|
60015
|
-
import { mkdtempSync as mkdtempSync4, readFileSync as readFileSync72, mkdirSync as mkdirSync30, writeFileSync as writeFileSync28, existsSync as existsSync60, rmSync as
|
|
60024
|
+
import { mkdtempSync as mkdtempSync4, readFileSync as readFileSync72, mkdirSync as mkdirSync30, writeFileSync as writeFileSync28, existsSync as existsSync60, rmSync as rmSync14, readdirSync as readdirSync27, statSync as statSync17, lstatSync as lstatSync9, accessSync, constants as constants2, renameSync as renameSync6, cpSync as cpSync3 } from "node:fs";
|
|
60016
60025
|
import { execFile, execFileSync as execFileSync7, spawnSync as spawnSync5, spawn as spawn6 } from "node:child_process";
|
|
60017
60026
|
import { createHash as createHash27, randomUUID as randomUUID5 } from "node:crypto";
|
|
60018
60027
|
import { tmpdir as tmpdir5, homedir as homedir7, hostname } from "node:os";
|
|
@@ -64305,7 +64314,7 @@ function acquireUpdateLock(cachePath, now, hooks = {}) {
|
|
|
64305
64314
|
};
|
|
64306
64315
|
const removeIfMine = (path2) => {
|
|
64307
64316
|
try {
|
|
64308
|
-
if (readLock(path2) === mine)
|
|
64317
|
+
if (readLock(path2) === mine) rmSync14(path2, { force: true });
|
|
64309
64318
|
} catch {
|
|
64310
64319
|
}
|
|
64311
64320
|
};
|
|
@@ -64328,7 +64337,7 @@ function acquireUpdateLock(cachePath, now, hooks = {}) {
|
|
|
64328
64337
|
hooks.underBreakLock?.();
|
|
64329
64338
|
if (current === void 0) return tryCreate(lockPath) ? release : void 0;
|
|
64330
64339
|
if (!isAbandoned(current)) return void 0;
|
|
64331
|
-
|
|
64340
|
+
rmSync14(lockPath, { force: true });
|
|
64332
64341
|
return tryCreate(lockPath) ? release : void 0;
|
|
64333
64342
|
} finally {
|
|
64334
64343
|
removeIfMine(breakPath);
|
|
@@ -65078,13 +65087,13 @@ function materializeForPreview(appDir2, slug, displayName) {
|
|
|
65078
65087
|
if (!entry.isDirectory()) continue;
|
|
65079
65088
|
const pid = Number(entry.name.startsWith(`${slug}-`) ? entry.name.slice(slug.length + 1) : NaN);
|
|
65080
65089
|
if (Number.isInteger(pid) && pid > 0 && pid !== process.pid && !stillRunning(pid)) {
|
|
65081
|
-
|
|
65090
|
+
rmSync14(join57(root, entry.name), { recursive: true, force: true });
|
|
65082
65091
|
}
|
|
65083
65092
|
}
|
|
65084
65093
|
} catch {
|
|
65085
65094
|
}
|
|
65086
65095
|
const dest = join57(root, `${slug}-${process.pid}`);
|
|
65087
|
-
|
|
65096
|
+
rmSync14(dest, { recursive: true, force: true });
|
|
65088
65097
|
mkdirSync30(dest, { recursive: true });
|
|
65089
65098
|
materializeSource(forBuild, displayName, dest, slug);
|
|
65090
65099
|
return dest;
|
|
@@ -65338,7 +65347,7 @@ async function recordedReleaseForContentQuietly(dir, resolution, onDrift) {
|
|
|
65338
65347
|
return null;
|
|
65339
65348
|
} finally {
|
|
65340
65349
|
if (out !== void 0) try {
|
|
65341
|
-
|
|
65350
|
+
rmSync14(out, { recursive: true, force: true });
|
|
65342
65351
|
} catch {
|
|
65343
65352
|
}
|
|
65344
65353
|
}
|
|
@@ -66844,7 +66853,7 @@ himi v${cliVersion()} \u2014 run \`himi --version\`. If authoring commands fail
|
|
|
66844
66853
|
renderDescriptorWeb: renderDescriptorWeb2,
|
|
66845
66854
|
renderPngBatch: renderPngBatch2,
|
|
66846
66855
|
writePng: (path2, base64) => writePngFile(path2, base64),
|
|
66847
|
-
clearDir: (d) =>
|
|
66856
|
+
clearDir: (d) => rmSync14(d, { recursive: true, force: true })
|
|
66848
66857
|
}
|
|
66849
66858
|
});
|
|
66850
66859
|
writtenShots = sp.written;
|
|
@@ -68066,7 +68075,7 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68066
68075
|
...await navIssues2(dir, strict)
|
|
68067
68076
|
]);
|
|
68068
68077
|
if (hasErrors && !force) {
|
|
68069
|
-
|
|
68078
|
+
rmSync14(built, { recursive: true, force: true });
|
|
68070
68079
|
print({ ...report2, packed: false, hint: "lint found errors \u2014 fix them, or re-run `himi pack --force` to pack anyway" });
|
|
68071
68080
|
return 1;
|
|
68072
68081
|
}
|
|
@@ -68102,7 +68111,7 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68102
68111
|
io.error(JSON.stringify({ error: e.message }));
|
|
68103
68112
|
return 1;
|
|
68104
68113
|
} finally {
|
|
68105
|
-
|
|
68114
|
+
rmSync14(built, { recursive: true, force: true });
|
|
68106
68115
|
}
|
|
68107
68116
|
}
|
|
68108
68117
|
// ---- himi import — turn a dev .himi back into an editable content package ----
|
|
@@ -68418,7 +68427,7 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68418
68427
|
return;
|
|
68419
68428
|
}
|
|
68420
68429
|
const hasWorkers = bres.built.length > 0;
|
|
68421
|
-
const outcome = await buildReleaseFromContent2(dir, next, { ...hasWorkers ? { tier5Dir: bundleOutDir2(dir) } : {} });
|
|
68430
|
+
const outcome = await buildReleaseFromContent2(dir, next, { ...hasWorkers ? { tier5Dir: bundleOutDir2(dir) } : {}, freshModule: true });
|
|
68422
68431
|
const blocker = watchKit.rebuildBlocker(outcome, servedMissing);
|
|
68423
68432
|
if (blocker) {
|
|
68424
68433
|
await failed2(blocker);
|
|
@@ -68434,7 +68443,7 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68434
68443
|
} catch {
|
|
68435
68444
|
cpSync3(join57(next, running.app), live2, { recursive: true });
|
|
68436
68445
|
}
|
|
68437
|
-
|
|
68446
|
+
rmSync14(retired, { recursive: true, force: true });
|
|
68438
68447
|
current = fresh;
|
|
68439
68448
|
servedMissing = outcome.missingBundles;
|
|
68440
68449
|
for (const [event, data] of watchKit.reloadEvents(diff)) bus.publish(event, data);
|
|
@@ -68444,7 +68453,7 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68444
68453
|
} catch (e) {
|
|
68445
68454
|
await failed2(e.message.split("\n")[0]);
|
|
68446
68455
|
} finally {
|
|
68447
|
-
|
|
68456
|
+
rmSync14(next, { recursive: true, force: true });
|
|
68448
68457
|
}
|
|
68449
68458
|
});
|
|
68450
68459
|
watcher = watchKit.watchContent(dir, () => rebuild?.());
|
|
@@ -68488,8 +68497,8 @@ default (no --glyph): ${DEFAULT_GLYPH2} \u2014 a mark that claims nothing, so th
|
|
|
68488
68497
|
io.error(JSON.stringify({ error: e.message }));
|
|
68489
68498
|
return 1;
|
|
68490
68499
|
} finally {
|
|
68491
|
-
if (temp)
|
|
68492
|
-
if (served)
|
|
68500
|
+
if (temp) rmSync14(temp, { recursive: true, force: true });
|
|
68501
|
+
if (served) rmSync14(served, { recursive: true, force: true });
|
|
68493
68502
|
}
|
|
68494
68503
|
}
|
|
68495
68504
|
case "preview": {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1022.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "5f3c69be98f6d2a53f972e21eba5aff776dfd66f1208d77ae44008c4"
|
|
69
69
|
}
|