@absolutejs/absolute 0.20.0-beta.130 → 0.20.0-beta.132
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/CHANGELOG.md +28 -0
- package/changelog.json +52 -0
- package/dist/angular/browser.js +406 -396
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -3
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -4
- package/dist/angular/index.js +560 -701
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +197 -338
- package/dist/angular/server.js.map +5 -5
- package/dist/build/buildWorker.js +27 -35
- package/dist/build.js +3833 -5876
- package/dist/build.js.map +4 -4
- package/dist/cli/{add-9sa7e3vd.js → add-hvqeg5sz.js} +23 -25
- package/dist/cli/{analyze-c1sep5y9.js → analyze-c2x2aym5.js} +6 -7
- package/dist/cli/androidEmulatorController-j73a1br6.js +22 -0
- package/dist/cli/{androidNativeWatcher-dnp95nk2.js → androidNativeWatcher-ctbnsr1v.js} +11 -14
- package/dist/cli/{api-2hd8cahp.js → api-rk13rfd9.js} +11 -13
- package/dist/cli/{build-857rc1ds.js → build-20y4b6rj.js} +8 -9
- package/dist/cli/{buildDepVendor-8akhr8n8.js → buildDepVendor-axqvbbm6.js} +5 -170
- package/dist/cli/{compile-9by2vxy5.js → compile-nf4qsqyd.js} +45 -48
- package/dist/cli/config/client.js +8 -8
- package/dist/cli/config/server.js +5615 -5595
- package/dist/cli/config-3te1fbry.js +7 -0
- package/dist/cli/{db-8wweexdp.js → db-p8pc325y.js} +5 -13
- package/dist/cli/{dev-qg7fr16s.js → dev-6f0gry3y.js} +75 -77
- package/dist/cli/{devCert-avr89zf3.js → devCert-n33ep8pg.js} +0 -3
- package/dist/cli/{doctor-mbh9bk05.js → doctor-8rm8p4dm.js} +13 -14
- package/dist/cli/emulatorDoctor-cwa70kgt.js +17 -0
- package/dist/cli/emulatorInstaller-dx3fmm2m.js +14 -0
- package/dist/cli/env-2107nff1.js +11 -0
- package/dist/cli/eslint-zz0t0kfp.js +17 -0
- package/dist/cli/eslintChunked-wg10jj9m.js +12 -0
- package/dist/cli/expoDevController-s70fj7vf.js +16 -0
- package/dist/cli/{expoNativeWatcher-rmc95bak.js → expoNativeWatcher-aakp7xvj.js} +1 -5
- package/dist/cli/expoProject-zy02tbfg.js +10 -0
- package/dist/cli/{generate-069p0dk3.js → generate-nz4w03yz.js} +19 -21
- package/dist/cli/{heapDiff-87v24x7p.js → heapDiff-2etr2r26.js} +5 -6
- package/dist/cli/{htmx-5wh1jh75.js → htmx-0xcaqrny.js} +12 -14
- package/dist/cli/{index-sjvydg2r.js → index-1ff9q1vx.js} +7 -7
- package/dist/cli/{index-rqbk0b30.js → index-1qewxkgy.js} +26 -26
- package/dist/cli/{index-prwyfnn3.js → index-1x1vah31.js} +2 -2
- package/dist/cli/{index-ddakkws4.js → index-31j3beht.js} +13 -13
- package/dist/cli/{index-j2nw3edf.js → index-3gtnqd57.js} +5 -5
- package/dist/cli/{index-54q7pxcx.js → index-434b7j4a.js} +2 -32
- package/dist/cli/{index-w5vswatm.js → index-43a1vvb7.js} +6 -10
- package/dist/cli/{index-nxcwg9ma.js → index-5sjk7daj.js} +31 -31
- package/dist/cli/{index-6j1xaheg.js → index-73sk1ney.js} +5 -5
- package/dist/cli/{index-3x5wpx5d.js → index-8kdmmgvc.js} +2 -2
- package/dist/cli/{index-1ys3dnrs.js → index-8w2wazrk.js} +34 -34
- package/dist/cli/{index-wtfnv3n2.js → index-92hmw204.js} +3 -3
- package/dist/cli/{index-vdbn8brx.js → index-c3tqbpkq.js} +40 -41
- package/dist/cli/{index-mywsk201.js → index-fde3c297.js} +1 -1
- package/dist/cli/{index-wctgx65x.js → index-hfvxsgf4.js} +48 -31
- package/dist/cli/{index-255xs63d.js → index-j57pgg5m.js} +10 -10
- package/dist/cli/{index-5cgsrv62.js → index-jcjwsdqt.js} +13 -182
- package/dist/cli/{index-00wfffav.js → index-k4t9k1xk.js} +5 -5
- package/dist/cli/{index-yxgaf8j0.js → index-m1vntzf1.js} +7 -5
- package/dist/cli/{index-9r7n9dqp.js → index-ma1dw7x2.js} +1 -1
- package/dist/cli/index-pch0v1z6.js +60 -0
- package/dist/cli/{index-8nym68py.js → index-ppxed116.js} +1 -1
- package/dist/cli/{index-9kwmb3c0.js → index-qyxd5n9a.js} +3 -3
- package/dist/cli/{index-tn4crd40.js → index-r62705dc.js} +12 -12
- package/dist/cli/{index-hty8111z.js → index-r915cvqp.js} +17 -17
- package/dist/cli/{index-exdd5k1g.js → index-rrxeqrbn.js} +2 -2
- package/dist/cli/{index-keg69zm1.js → index-snbzdwb9.js} +5 -5
- package/dist/cli/{index-v26ze17p.js → index-thqwfzy8.js} +3 -3
- package/dist/cli/{index-0hr7c4qe.js → index-vdnmqkt8.js} +14 -18
- package/dist/cli/{index-vkkqe08e.js → index-vj2v38sq.js} +29 -29
- package/dist/cli/{index-erngp7a9.js → index-wy0yh4jj.js} +16 -16
- package/dist/cli/{index-1cypb2zn.js → index-xcr3r6a1.js} +8 -8
- package/dist/cli/index.js +44 -48
- package/dist/cli/{info-d74dr585.js → info-kx5510rq.js} +7 -7
- package/dist/cli/{inspect-23chj4nc.js → inspect-5dj06x0m.js} +18 -20
- package/dist/cli/{iosNativeWatcher-kggp7j9a.js → iosNativeWatcher-zx49pzej.js} +12 -16
- package/dist/cli/iosSimulatorController-haa1cc3p.js +23 -0
- package/dist/cli/{islands-wpqgmwh0.js → islands-z4adh55n.js} +8 -9
- package/dist/cli/{lintProof-wx3b6dzy.js → lintProof-qcwdvzcz.js} +12 -17
- package/dist/cli/{logs-bx2n5ey6.js → logs-3p2vrq5h.js} +8 -10
- package/dist/cli/{ls-kvmcmd2j.js → ls-nkspq73y.js} +13 -14
- package/dist/cli/{mem-apbk7bx4.js → mem-h3f497cr.js} +10 -14
- package/dist/cli/{migrate-p4rp5r6b.js → migrate-52bqqp08.js} +7 -8
- package/dist/cli/{mobile-43q3zmjf.js → mobile-m0cdh8cf.js} +572 -575
- package/dist/cli/nativeAuth-ysv0x5dy.js +27 -0
- package/dist/cli/patchedBun-m7vj5sks.js +9 -0
- package/dist/cli/prerender-mfnwsvyt.js +7 -0
- package/dist/cli/{prettier-vtk5yaw4.js → prettier-c1624g36.js} +2 -6
- package/dist/cli/{ps-8y28kzmb.js → ps-0jedm91n.js} +12 -16
- package/dist/cli/{psTui-8e96mwgz.js → psTui-tpr5nbmc.js} +28 -30
- package/dist/cli/remoteMacProtocol-v3ax0y0f.js +41 -0
- package/dist/cli/{remove-3fd1z2hx.js → remove-z0brj5nd.js} +16 -18
- package/dist/cli/{rewriteImports-d1gmaa68.js → rewriteImports-k6rjjmg1.js} +2 -100
- package/dist/cli/{routes-0xpanj8z.js → routes-ey0sw1eq.js} +7 -9
- package/dist/cli/start-3z3gtgm0.js +20 -0
- package/dist/cli/telemetry-3wnc06wa.js +9 -0
- package/dist/cli/{tunnelRelay-5at2v8w6.js → tunnelRelay-19ay0fxn.js} +3 -4
- package/dist/cli/{typecheck-yj9s13eb.js → typecheck-nmf6e7k7.js} +147 -149
- package/dist/cli/{workspace-m56sgfkc.js → workspace-yetzedke.js} +32 -36
- package/dist/client/chunks/{index-dk743xs6.js → index-8m2qq61n.js} +12 -8
- package/dist/client/chunks/{index-dk743xs6.js.map → index-8m2qq61n.js.map} +4 -3
- package/dist/client/chunks/{index-m35nbkdp.js → islands-rc28k5sx.js} +104 -42
- package/dist/client/chunks/islands-rc28k5sx.js.map +15 -0
- package/dist/client/chunks/{react-yq4ss9y4.js → react-dcvkaba2.js} +5 -7
- package/dist/client/chunks/{react-yq4ss9y4.js.map → react-dcvkaba2.js.map} +2 -2
- package/dist/client/chunks/{svelte-s0c964kb.js → svelte-4yfa5bxa.js} +2 -4
- package/dist/client/chunks/{svelte-s0c964kb.js.map → svelte-4yfa5bxa.js.map} +2 -2
- package/dist/client/chunks/{vue-rdskrnyg.js → vue-a84fzp3v.js} +2 -4
- package/dist/client/chunks/{vue-rdskrnyg.js.map → vue-a84fzp3v.js.map} +2 -2
- package/dist/client/index.js +42 -15
- package/dist/client/index.js.map +2 -2
- package/dist/client/prefetch.js +1 -3
- package/dist/client/prefetch.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +1 -64
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -64
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/serverBootstrap.js +1802 -2018
- package/dist/index.js +5247 -8794
- package/dist/index.js.map +9 -20
- package/dist/islands/browser.js +13 -3
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +26 -142
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +13 -3
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +1067 -2182
- package/dist/mobile/index.js.map +2 -2
- package/dist/mobile/remoteMacAgentEntry.js +156 -156
- package/dist/mobile/shellAuth.js +0 -16
- package/dist/mobile/shellBootstrap.js +734 -724
- package/dist/mobile/shellExpoAuth.js +4 -18
- package/dist/mobile/shellExpoDevices.js +0 -16
- package/dist/mobile/shellExpoSync.js +0 -16
- package/dist/mobile/shellSync.js +3 -19
- package/dist/mobile/shellUpdate.js +5 -21
- package/dist/mobile/uiPrimitives.js +0 -16
- package/dist/react/browser.js +15 -5
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js +68 -58
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/hooks/index.js +1 -63
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +56 -195
- package/dist/react/index.js.map +5 -5
- package/dist/react/jsxDevRuntimeCompat.js +1 -64
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +1 -64
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +1 -64
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +1 -64
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +38 -51
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/config/server.d.ts +7 -129
- package/dist/src/cli/patchedBun.d.ts +14 -14
- package/dist/src/cli/serverBundleExternals.d.ts +17 -2
- package/dist/src/core/prepare.d.ts +149 -1805
- package/dist/src/core/requestContext.d.ts +1 -1
- package/dist/src/dev/requestInspector.d.ts +1 -1
- package/dist/src/mobile/associationFiles.d.ts +2 -2
- package/dist/src/mobile/compatibilityDispatcher.d.ts +1 -1
- package/dist/src/mobile/mobilePreview.d.ts +8 -130
- package/dist/src/mobile/updateServer.d.ts +2 -2
- package/dist/src/plugins/devtoolsJson.d.ts +2 -2
- package/dist/src/plugins/hmr.d.ts +2 -2
- package/dist/src/plugins/imageOptimizer.d.ts +2 -151
- package/dist/src/plugins/telemetryPlugin.d.ts +1 -19
- package/dist/svelte/browser.js +13 -3
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +66 -210
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/server.js +51 -99
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +0 -6
- package/dist/vue/browser.js +13 -3
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +13 -3
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +62 -50
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +1115 -1258
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +42 -59
- package/dist/vue/server.js.map +5 -5
- package/package.json +9 -9
- package/dist/cli/androidEmulatorController-sj141e1c.js +0 -30
- package/dist/cli/config-rjeexvza.js +0 -8
- package/dist/cli/emulatorDoctor-gzarrsex.js +0 -18
- package/dist/cli/emulatorInstaller-pjw4ex6q.js +0 -15
- package/dist/cli/env-4f6f6z69.js +0 -14
- package/dist/cli/eslint-qfkxe89p.js +0 -20
- package/dist/cli/eslintChunked-7ef700pn.js +0 -21
- package/dist/cli/expoDevController-weywa74d.js +0 -26
- package/dist/cli/expoProject-w2pzjwnx.js +0 -11
- package/dist/cli/index-1rabqyq0.js +0 -7
- package/dist/cli/index-ar4gz15x.js +0 -60
- package/dist/cli/iosSimulatorController-xcxxfkzx.js +0 -34
- package/dist/cli/nativeAuth-zx4tsb1f.js +0 -38
- package/dist/cli/patchedBun-zjtrn2s4.js +0 -38
- package/dist/cli/prerender-yex2zwj3.js +0 -18
- package/dist/cli/remoteMacProtocol-r38jhg44.js +0 -69
- package/dist/cli/start-gzhrkhxe.js +0 -23
- package/dist/cli/telemetry-94rka1w2.js +0 -14
- package/dist/client/chunks/angularPatch-arh4sr68.js +0 -157
- package/dist/client/chunks/angularPatch-arh4sr68.js.map +0 -10
- package/dist/client/chunks/index-jrcwp722.js +0 -12
- package/dist/client/chunks/index-jrcwp722.js.map +0 -10
- package/dist/client/chunks/index-m35nbkdp.js.map +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js.map +0 -9
- package/dist/client/chunks/islands-50dg63j9.js +0 -284
- package/dist/client/chunks/islands-50dg63j9.js.map +0 -14
- /package/dist/cli/{index-me8nczrw.js → index-039rh39e.js} +0 -0
- /package/dist/cli/{index-bw4ktfnz.js → index-1y5mmnwg.js} +0 -0
- /package/dist/cli/{index-5xfxd7xa.js → index-3wm8p7rg.js} +0 -0
- /package/dist/cli/{index-4rme31py.js → index-420h9hq7.js} +0 -0
- /package/dist/cli/{index-4rhxthsy.js → index-65kqn88a.js} +0 -0
- /package/dist/cli/{index-r8x3839e.js → index-71gchbzt.js} +0 -0
- /package/dist/cli/{index-s2tazax7.js → index-92g14j47.js} +0 -0
- /package/dist/cli/{index-j66p8hn5.js → index-bwsa6ax4.js} +0 -0
- /package/dist/cli/{index-bzs19w3r.js → index-e6ysp900.js} +0 -0
- /package/dist/cli/{index-06cmrcdq.js → index-h7qhz02e.js} +0 -0
- /package/dist/cli/{index-6h54jqdq.js → index-hg54jyts.js} +0 -0
- /package/dist/cli/{index-czwrxgdj.js → index-hxqprc80.js} +0 -0
- /package/dist/cli/{index-zh6hhrwy.js → index-jjfbjv1z.js} +0 -0
- /package/dist/cli/{index-fc9vxw56.js → index-prs14ys9.js} +0 -0
- /package/dist/cli/{index-v1k46q3x.js → index-tx0kx9zx.js} +0 -0
- /package/dist/cli/{index-fhaf3tdk.js → index-x8x0f3ha.js} +0 -0
- /package/dist/cli/{index-18q9qc7f.js → index-ypcqx24p.js} +0 -0
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
__require
|
|
4
|
-
} from "./index-mywsk201.js";
|
|
5
|
-
|
|
6
2
|
// src/cli/scripts/eslint.ts
|
|
7
3
|
import { createHash } from "crypto";
|
|
8
4
|
import {
|
|
@@ -24,7 +20,7 @@ var flagValue = (args, flag) => {
|
|
|
24
20
|
const index = args.indexOf(flag);
|
|
25
21
|
return index < 0 ? undefined : args[index + 1];
|
|
26
22
|
};
|
|
27
|
-
var
|
|
23
|
+
var getCacheLocation2 = (args) => flagValue(args, "--cache-location")?.trim() || process.env.ABSOLUTE_ESLINT_CACHE?.trim() || DEFAULT_CACHE_LOCATION;
|
|
28
24
|
var CONFIG_CANDIDATES = [
|
|
29
25
|
"eslint.config.js",
|
|
30
26
|
"eslint.config.mjs",
|
|
@@ -76,7 +72,7 @@ var hasUserPositional = (args) => {
|
|
|
76
72
|
}
|
|
77
73
|
return false;
|
|
78
74
|
};
|
|
79
|
-
var
|
|
75
|
+
var findEslintConfigPath2 = (cwd = process.cwd()) => {
|
|
80
76
|
for (const name of CONFIG_CANDIDATES) {
|
|
81
77
|
const candidate = resolve(cwd, name);
|
|
82
78
|
if (existsSync(candidate))
|
|
@@ -151,10 +147,10 @@ var findInstalledManifest = (cwd, dependency) => {
|
|
|
151
147
|
directory = parent;
|
|
152
148
|
}
|
|
153
149
|
};
|
|
154
|
-
var
|
|
150
|
+
var createEslintCacheFingerprint2 = (cwd = process.cwd()) => {
|
|
155
151
|
const hash = createHash("sha256");
|
|
156
152
|
hash.update(`absolute-eslint-cache:${CACHE_CONTRACT_VERSION}\x00`);
|
|
157
|
-
const configPath =
|
|
153
|
+
const configPath = findEslintConfigPath2(cwd);
|
|
158
154
|
for (const dependency of lintDependencyNames(cwd, configPath).sort()) {
|
|
159
155
|
const manifestPath = findInstalledManifest(cwd, dependency);
|
|
160
156
|
if (manifestPath)
|
|
@@ -162,10 +158,10 @@ var createEslintCacheFingerprint = (cwd = process.cwd()) => {
|
|
|
162
158
|
}
|
|
163
159
|
return hash.digest("hex");
|
|
164
160
|
};
|
|
165
|
-
var
|
|
161
|
+
var createEslintConfigDigest2 = (cwd = process.cwd()) => {
|
|
166
162
|
const hash = createHash("sha256");
|
|
167
163
|
hash.update(`absolute-eslint-config:${CACHE_CONTRACT_VERSION}\x00`);
|
|
168
|
-
const configPath =
|
|
164
|
+
const configPath = findEslintConfigPath2(cwd);
|
|
169
165
|
if (configPath)
|
|
170
166
|
addFileToFingerprint(hash, configPath, relative(cwd, configPath));
|
|
171
167
|
return hash.digest("hex");
|
|
@@ -177,11 +173,11 @@ var writeFingerprint = (path, fingerprint) => {
|
|
|
177
173
|
`);
|
|
178
174
|
renameSync(temporary, path);
|
|
179
175
|
};
|
|
180
|
-
var
|
|
176
|
+
var prepareEslintCache2 = (options) => {
|
|
181
177
|
const cwd = options.cwd ?? process.cwd();
|
|
182
178
|
const cachePath = resolve(cwd, options.cacheLocation);
|
|
183
179
|
const metadataPath = fingerprintLocation(options.cacheLocation, cwd);
|
|
184
|
-
const fingerprint = options.fingerprint ??
|
|
180
|
+
const fingerprint = options.fingerprint ?? createEslintCacheFingerprint2(cwd);
|
|
185
181
|
const prior = existsSync(metadataPath) ? readFileSync(metadataPath, "utf-8").trim() : null;
|
|
186
182
|
if (prior === fingerprint)
|
|
187
183
|
return false;
|
|
@@ -279,7 +275,7 @@ var extractTopLevelObjectLiterals = (source) => {
|
|
|
279
275
|
return blocks;
|
|
280
276
|
};
|
|
281
277
|
var checkForMisplacedIgnores = () => {
|
|
282
|
-
const configPath =
|
|
278
|
+
const configPath = findEslintConfigPath2();
|
|
283
279
|
if (!configPath)
|
|
284
280
|
return;
|
|
285
281
|
let source;
|
|
@@ -349,8 +345,8 @@ var buildEslintCommand = (args, cacheLocation) => {
|
|
|
349
345
|
...hasUserPositional(args) ? [] : ["."]
|
|
350
346
|
];
|
|
351
347
|
};
|
|
352
|
-
var
|
|
353
|
-
const cacheLocation =
|
|
348
|
+
var eslint2 = async (args) => {
|
|
349
|
+
const cacheLocation = getCacheLocation2(args);
|
|
354
350
|
if (args.includes("--clear-cache")) {
|
|
355
351
|
handleClearCache(cacheLocation);
|
|
356
352
|
return;
|
|
@@ -360,7 +356,7 @@ var eslint = async (args) => {
|
|
|
360
356
|
console.error("\x1B[31m\u2717\x1B[0m ESLint is not installed in this project. Add it (and a flat `eslint.config.*`): bun add -d eslint");
|
|
361
357
|
process.exit(1);
|
|
362
358
|
}
|
|
363
|
-
const { eslintChunked } = await import("./eslintChunked-
|
|
359
|
+
const { eslintChunked } = await import("./eslintChunked-wg10jj9m.js");
|
|
364
360
|
await eslintChunked(args);
|
|
365
361
|
return;
|
|
366
362
|
}
|
|
@@ -371,7 +367,7 @@ var eslint = async (args) => {
|
|
|
371
367
|
checkForMisplacedIgnores();
|
|
372
368
|
const cacheEnabled = !args.includes("--no-cache");
|
|
373
369
|
if (cacheEnabled)
|
|
374
|
-
|
|
370
|
+
prepareEslintCache2({ cacheLocation });
|
|
375
371
|
const command = buildEslintCommand(args, cacheLocation);
|
|
376
372
|
const dim = "\x1B[2m";
|
|
377
373
|
const reset = "\x1B[0m";
|
|
@@ -390,4 +386,4 @@ var eslint = async (args) => {
|
|
|
390
386
|
console.log(`\x1B[32m\u2713\x1B[0m Passed ${dim}(${elapsed})${reset}`);
|
|
391
387
|
};
|
|
392
388
|
|
|
393
|
-
export {
|
|
389
|
+
export { getCacheLocation2, findEslintConfigPath2, createEslintCacheFingerprint2, createEslintConfigDigest2, prepareEslintCache2, eslint2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
detectAbsoluteMobileHost2,
|
|
4
|
+
inspectAbsoluteMobileToolchain2
|
|
5
|
+
} from "./index-j57pgg5m.js";
|
|
2
6
|
import {
|
|
3
7
|
fingerprintAbsoluteIosNativeProject
|
|
4
|
-
} from "./index-
|
|
8
|
+
} from "./index-thqwfzy8.js";
|
|
5
9
|
import {
|
|
6
10
|
normalizeAbsoluteIosDeviceHost,
|
|
7
11
|
normalizeAbsoluteIosDeviceIdentifier,
|
|
8
12
|
startAbsoluteIosCaEnrollmentServer
|
|
9
|
-
} from "./index-
|
|
13
|
+
} from "./index-bwsa6ax4.js";
|
|
10
14
|
import {
|
|
11
15
|
writeAbsoluteCapacitorConfig
|
|
12
|
-
} from "./index-
|
|
13
|
-
import {
|
|
14
|
-
detectAbsoluteMobileHost,
|
|
15
|
-
inspectAbsoluteMobileToolchain
|
|
16
|
-
} from "./index-255xs63d.js";
|
|
16
|
+
} from "./index-ypcqx24p.js";
|
|
17
17
|
import {
|
|
18
18
|
getDurationString
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-1x1vah31.js";
|
|
20
20
|
|
|
21
21
|
// src/mobile/iosSimulatorController.ts
|
|
22
22
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "fs/promises";
|
|
32
32
|
import { isIP } from "net";
|
|
33
33
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
34
|
-
var
|
|
34
|
+
var ABSOLUTE_IOS_SIMULATOR_NAME2 = "AbsoluteJS iPhone";
|
|
35
35
|
var BOOT_TIMEOUT_MS = 180000;
|
|
36
36
|
var BOOT_POLL_MS = 1000;
|
|
37
37
|
var DEV_JOURNAL_FORMAT = 1;
|
|
@@ -223,7 +223,7 @@ var parseIosRuntimes = (source) => {
|
|
|
223
223
|
];
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
|
-
var
|
|
226
|
+
var parseIosSimulators2 = (source) => {
|
|
227
227
|
const parsed = parseJson(source, "device");
|
|
228
228
|
const { devices } = parsed;
|
|
229
229
|
if (!isRecord(devices))
|
|
@@ -304,7 +304,7 @@ var parseJournal = (value) => {
|
|
|
304
304
|
nativeConfigPath
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
|
-
var
|
|
307
|
+
var repairAbsoluteIosDevSession2 = async (projectRoot) => {
|
|
308
308
|
const paths = journalPaths(projectRoot);
|
|
309
309
|
if (!await pathExists(paths.journal)) {
|
|
310
310
|
await rm(paths.root, { force: true, recursive: true });
|
|
@@ -343,7 +343,7 @@ var iosDevelopmentInfoPlist = (source, cleartext) => {
|
|
|
343
343
|
};
|
|
344
344
|
var writeDevProjection = async (project, port, https, serverHost = "localhost") => {
|
|
345
345
|
const paths = journalPaths(project.projectRoot);
|
|
346
|
-
await
|
|
346
|
+
await repairAbsoluteIosDevSession2(project.projectRoot);
|
|
347
347
|
const nativeConfigPath = join(project.nativeDirectory, "App", "App", "capacitor.config.json");
|
|
348
348
|
const infoPath = join(project.nativeDirectory, "App", "App", "Info.plist");
|
|
349
349
|
const [configSource, infoSource] = await Promise.all([
|
|
@@ -417,7 +417,7 @@ var writeNativeCache = async (projectRoot, cache) => {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
var
|
|
420
|
+
var fingerprintAbsoluteIosDevProject2 = async (project, options = {}) => fingerprintAbsoluteIosNativeProject(project.nativeDirectory, options);
|
|
421
421
|
var simulatorInventory = (xcrun, capture) => {
|
|
422
422
|
const result = capture([
|
|
423
423
|
xcrun,
|
|
@@ -427,14 +427,14 @@ var simulatorInventory = (xcrun, capture) => {
|
|
|
427
427
|
"available",
|
|
428
428
|
"-j"
|
|
429
429
|
]);
|
|
430
|
-
return
|
|
430
|
+
return parseIosSimulators2(requireCapturedSuccess(result, "iOS simulator discovery"));
|
|
431
431
|
};
|
|
432
432
|
var ensureManagedSimulator = async (project, capture) => {
|
|
433
433
|
const runtimes = parseIosRuntimes(requireCapturedSuccess(capture([project.xcrun, "simctl", "list", "runtimes", "-j"]), "iOS runtime discovery"));
|
|
434
434
|
const runtime = latestIosRuntime(runtimes);
|
|
435
435
|
if (!runtime)
|
|
436
436
|
throw new Error("No available iOS Simulator runtime. Run absolute mobile doctor ios --fix.");
|
|
437
|
-
const [existing] = simulatorInventory(project.xcrun, capture).filter((device) => device.isAvailable && device.name ===
|
|
437
|
+
const [existing] = simulatorInventory(project.xcrun, capture).filter((device) => device.isAvailable && device.name === ABSOLUTE_IOS_SIMULATOR_NAME2 && device.runtime === runtime.identifier).sort((left, right) => Number(right.state === "Booted") - Number(left.state === "Booted"));
|
|
438
438
|
if (existing)
|
|
439
439
|
return { created: false, device: existing };
|
|
440
440
|
const types = parseIosDeviceTypes(requireCapturedSuccess(capture([project.xcrun, "simctl", "list", "devicetypes", "-j"]), "iOS device-type discovery"));
|
|
@@ -445,7 +445,7 @@ var ensureManagedSimulator = async (project, capture) => {
|
|
|
445
445
|
project.xcrun,
|
|
446
446
|
"simctl",
|
|
447
447
|
"create",
|
|
448
|
-
|
|
448
|
+
ABSOLUTE_IOS_SIMULATOR_NAME2,
|
|
449
449
|
type.identifier,
|
|
450
450
|
runtime.identifier
|
|
451
451
|
]), "iOS simulator creation").split(/\s/u);
|
|
@@ -455,7 +455,7 @@ var ensureManagedSimulator = async (project, capture) => {
|
|
|
455
455
|
created: true,
|
|
456
456
|
device: {
|
|
457
457
|
isAvailable: true,
|
|
458
|
-
name:
|
|
458
|
+
name: ABSOLUTE_IOS_SIMULATOR_NAME2,
|
|
459
459
|
runtime: runtime.identifier,
|
|
460
460
|
state: "Shutdown",
|
|
461
461
|
udid
|
|
@@ -688,12 +688,12 @@ var timingSummary = (timings) => IOS_TIMING_PHASES.map(([phase, label]) => {
|
|
|
688
688
|
const duration = timings[phase];
|
|
689
689
|
return duration === undefined ? null : `${label} ${getDurationString(duration)}`;
|
|
690
690
|
}).filter((value) => value !== null).join(", ");
|
|
691
|
-
var
|
|
692
|
-
if (
|
|
691
|
+
var prepareAbsoluteIosDevProject2 = async (config, options) => {
|
|
692
|
+
if (detectAbsoluteMobileHost2() !== "macos")
|
|
693
693
|
throw new Error("iOS development requires macOS and Xcode.");
|
|
694
694
|
const target = options.target ?? "simulator";
|
|
695
695
|
const projectRoot = resolve(options.projectRoot);
|
|
696
|
-
const checks = await
|
|
696
|
+
const checks = await inspectAbsoluteMobileToolchain2({ host: "macos" });
|
|
697
697
|
const failed = checks.filter((check) => check.platform === "ios" && !(target === "device" && check.id === "ios.runtime") && (check.status === "fail" || check.status === "warn"));
|
|
698
698
|
if (failed.length > 0)
|
|
699
699
|
throw new Error(`iOS ${target} development is not ready: ${failed.map(({ label }) => label).join(", ")}.`);
|
|
@@ -771,7 +771,7 @@ var prepareIosSimulatorTarget = async (options) => {
|
|
|
771
771
|
await trustIosSimulatorDevelopmentCa(options.startOptions, device.udid, options.run, options.log);
|
|
772
772
|
return { caEnrollmentServer: null, startedSimulator, udid: device.udid };
|
|
773
773
|
};
|
|
774
|
-
var
|
|
774
|
+
var startAbsoluteIosDevSession2 = async (options) => {
|
|
775
775
|
const { project } = options;
|
|
776
776
|
const deviceIdentifier = options.deviceIdentifier ? normalizeAbsoluteIosDeviceIdentifier(options.deviceIdentifier) : undefined;
|
|
777
777
|
const targetKind = deviceIdentifier ? "device" : "simulator";
|
|
@@ -820,7 +820,7 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
820
820
|
await requireSuccess(iosLaunchCommand(project, udid, deviceIdentifier !== undefined), "iOS app relaunch", run, { signal: options.signal });
|
|
821
821
|
};
|
|
822
822
|
try {
|
|
823
|
-
await
|
|
823
|
+
await repairAbsoluteIosDevSession2(project.projectRoot);
|
|
824
824
|
throwIfAborted(options.signal);
|
|
825
825
|
transition("syncing");
|
|
826
826
|
await requireSuccess([project.cap, "sync", "ios"], "Capacitor iOS synchronization", run, { cwd: project.projectRoot, signal: options.signal });
|
|
@@ -829,11 +829,11 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
829
829
|
await writeDevProjection(project, options.port, options.https === true, serverHost);
|
|
830
830
|
throwIfAborted(options.signal);
|
|
831
831
|
const fingerprintStartedAt = performance.now();
|
|
832
|
-
const fingerprintPromise =
|
|
832
|
+
const fingerprintPromise = fingerprintAbsoluteIosDevProject2(project, {
|
|
833
833
|
includePublicBundle: options.embeddedBundle === true
|
|
834
|
-
}).then((
|
|
834
|
+
}).then((fingerprint) => {
|
|
835
835
|
timings.fingerprinting = performance.now() - fingerprintStartedAt;
|
|
836
|
-
return
|
|
836
|
+
return fingerprint;
|
|
837
837
|
});
|
|
838
838
|
const target = deviceIdentifier ? await preparePhysicalIosTarget({
|
|
839
839
|
capture,
|
|
@@ -905,7 +905,7 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
905
905
|
return;
|
|
906
906
|
});
|
|
907
907
|
caEnrollmentServer = null;
|
|
908
|
-
await
|
|
908
|
+
await repairAbsoluteIosDevSession2(project.projectRoot);
|
|
909
909
|
transition("closed");
|
|
910
910
|
};
|
|
911
911
|
return {
|
|
@@ -920,7 +920,7 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
920
920
|
throw new Error("iOS development session is closed.");
|
|
921
921
|
log("iOS native inputs changed; rebuilding without restarting the dev server.");
|
|
922
922
|
await close();
|
|
923
|
-
return
|
|
923
|
+
return startAbsoluteIosDevSession2(options);
|
|
924
924
|
},
|
|
925
925
|
relaunch: async () => {
|
|
926
926
|
if (closed)
|
|
@@ -962,9 +962,9 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
962
962
|
await caEnrollmentServer?.close().catch(() => {
|
|
963
963
|
return;
|
|
964
964
|
});
|
|
965
|
-
await
|
|
965
|
+
await repairAbsoluteIosDevSession2(project.projectRoot);
|
|
966
966
|
throw error;
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
969
|
|
|
970
|
-
export {
|
|
970
|
+
export { ABSOLUTE_IOS_SIMULATOR_NAME2, parseIosSimulators2, repairAbsoluteIosDevSession2, fingerprintAbsoluteIosDevProject2, prepareAbsoluteIosDevProject2, startAbsoluteIosDevSession2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./index-
|
|
3
|
+
ABSOLUTE_ANDROID_AVD_NAME2,
|
|
4
|
+
absoluteManagedAndroidSdkRoot2,
|
|
5
|
+
detectAbsoluteMobileHost2,
|
|
6
|
+
inspectAbsoluteMobileToolchain2
|
|
7
|
+
} from "./index-j57pgg5m.js";
|
|
8
8
|
|
|
9
9
|
// src/mobile/emulatorInstaller.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -84,13 +84,13 @@ var systemImageFor = (host, arch) => {
|
|
|
84
84
|
const imageArch = host === "macos" && arch === "arm64" ? "arm64-v8a" : "x86_64";
|
|
85
85
|
return `system-images;android-${ANDROID_API};google_apis;${imageArch}`;
|
|
86
86
|
};
|
|
87
|
-
var
|
|
88
|
-
const host = input.host ??
|
|
87
|
+
var planAbsoluteMobileEmulatorInstall2 = (platform, input = {}) => {
|
|
88
|
+
const host = input.host ?? detectAbsoluteMobileHost2();
|
|
89
89
|
const env = {
|
|
90
90
|
...process.env,
|
|
91
91
|
...input.env
|
|
92
92
|
};
|
|
93
|
-
const androidRoot = env.ANDROID_HOME ?? env.ANDROID_SDK_ROOT ??
|
|
93
|
+
const androidRoot = env.ANDROID_HOME ?? env.ANDROID_SDK_ROOT ?? absoluteManagedAndroidSdkRoot2(host, env);
|
|
94
94
|
if (platform === "ios") {
|
|
95
95
|
return {
|
|
96
96
|
androidRoot,
|
|
@@ -121,7 +121,7 @@ var planAbsoluteMobileEmulatorInstall = (platform, input = {}) => {
|
|
|
121
121
|
label: "Install Android SDK and emulator packages"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
detail: `Create ${
|
|
124
|
+
detail: `Create ${ABSOLUTE_ANDROID_AVD_NAME2} using a Google APIs system image.`,
|
|
125
125
|
id: "android.avd",
|
|
126
126
|
label: "Provision an AbsoluteJS Android emulator"
|
|
127
127
|
}
|
|
@@ -230,8 +230,8 @@ var installJavaRuntime = async (host, run, which) => {
|
|
|
230
230
|
}
|
|
231
231
|
await ensureCommand(candidate.command, "Java 21 installation", run);
|
|
232
232
|
};
|
|
233
|
-
var
|
|
234
|
-
const plan =
|
|
233
|
+
var fixAbsoluteMobileEmulatorToolchain2 = async (platform, options = {}) => {
|
|
234
|
+
const plan = planAbsoluteMobileEmulatorInstall2(platform, options);
|
|
235
235
|
const run = options.run ?? defaultRun;
|
|
236
236
|
const capture = options.capture ?? defaultCapture;
|
|
237
237
|
const log = options.log ?? console.log;
|
|
@@ -244,10 +244,10 @@ var fixAbsoluteMobileEmulatorToolchain = async (platform, options = {}) => {
|
|
|
244
244
|
throw new Error("iOS Simulator installation requires a complete Xcode installation selected with xcode-select.");
|
|
245
245
|
}
|
|
246
246
|
await ensureCommand(["xcodebuild", "-downloadPlatform", "iOS"], "iOS Simulator runtime installation", run);
|
|
247
|
-
const
|
|
247
|
+
const checks = await inspectAbsoluteMobileToolchain2({
|
|
248
248
|
host: plan.host
|
|
249
249
|
});
|
|
250
|
-
return { checks
|
|
250
|
+
return { checks, completed: ["ios.runtime"], plan };
|
|
251
251
|
}
|
|
252
252
|
const arch = options.arch ?? process.arch;
|
|
253
253
|
const exists = options.exists ?? (async (path) => {
|
|
@@ -295,7 +295,7 @@ var fixAbsoluteMobileEmulatorToolchain = async (platform, options = {}) => {
|
|
|
295
295
|
]), "Android SDK package installation", run, { env: sdkEnv });
|
|
296
296
|
completed.push("android.sdk-packages");
|
|
297
297
|
const emulator = executablePath(plan.androidRoot, plan.host, "emulator", "emulator");
|
|
298
|
-
const avdName =
|
|
298
|
+
const avdName = ABSOLUTE_ANDROID_AVD_NAME2;
|
|
299
299
|
const list = capture(runnableCommand(plan.host, emulator, ["-list-avds"]), {
|
|
300
300
|
env: sdkEnv
|
|
301
301
|
});
|
|
@@ -315,7 +315,7 @@ var fixAbsoluteMobileEmulatorToolchain = async (platform, options = {}) => {
|
|
|
315
315
|
` });
|
|
316
316
|
completed.push("android.avd");
|
|
317
317
|
}
|
|
318
|
-
const checks = await
|
|
318
|
+
const checks = await inspectAbsoluteMobileToolchain2({
|
|
319
319
|
androidRoot: plan.androidRoot,
|
|
320
320
|
env: { ...options.env, ANDROID_HOME: plan.androidRoot },
|
|
321
321
|
exists,
|
|
@@ -326,4 +326,4 @@ var fixAbsoluteMobileEmulatorToolchain = async (platform, options = {}) => {
|
|
|
326
326
|
return { checks, completed, plan };
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
export {
|
|
329
|
+
export { planAbsoluteMobileEmulatorInstall2, fixAbsoluteMobileEmulatorToolchain2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
LIST_TUI_COLUMN_GAP
|
|
4
|
+
} from "./index-hxqprc80.js";
|
|
2
5
|
import {
|
|
3
6
|
colors,
|
|
4
7
|
padLine
|
|
5
|
-
} from "./index-
|
|
6
|
-
import {
|
|
7
|
-
LIST_TUI_COLUMN_GAP
|
|
8
|
-
} from "./index-czwrxgdj.js";
|
|
8
|
+
} from "./index-ppxed116.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/scripts/env.ts
|
|
11
11
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -27,7 +27,7 @@ var scanEnvUsage = async () => {
|
|
|
27
27
|
return usage;
|
|
28
28
|
};
|
|
29
29
|
var isSet = (key) => typeof env[key] === "string" && env[key] !== "";
|
|
30
|
-
var
|
|
30
|
+
var collectEnvVars2 = async () => {
|
|
31
31
|
const usage = await scanEnvUsage();
|
|
32
32
|
return [...usage.keys()].sort().map((key) => ({
|
|
33
33
|
files: usage.get(key) ?? [],
|
|
@@ -47,8 +47,8 @@ var printTable = (vars) => {
|
|
|
47
47
|
`)}
|
|
48
48
|
`);
|
|
49
49
|
};
|
|
50
|
-
var
|
|
51
|
-
const vars = await
|
|
50
|
+
var runEnv2 = async (args) => {
|
|
51
|
+
const vars = await collectEnvVars2();
|
|
52
52
|
if (vars.length === 0) {
|
|
53
53
|
process.stdout.write(`${colors.dim}No getEnv() usage found under src/.${colors.reset}
|
|
54
54
|
`);
|
|
@@ -70,4 +70,4 @@ ${colors.dim}${vars.length} referenced \xB7 ${colors.reset}${summary}
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { collectEnvVars2, runEnv2 };
|
package/dist/cli/index.js
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
+
import"./index-43a1vvb7.js";
|
|
4
|
+
import {
|
|
5
|
+
CLI_ARGS_OFFSET,
|
|
6
|
+
UNFOUND_INDEX,
|
|
7
|
+
WORKSPACE_COMMAND_ARGS_OFFSET
|
|
8
|
+
} from "./index-hxqprc80.js";
|
|
3
9
|
import {
|
|
4
10
|
markBoot
|
|
5
|
-
} from "./index-
|
|
11
|
+
} from "./index-m1vntzf1.js";
|
|
6
12
|
import {
|
|
7
13
|
sendTelemetryEvent
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-w5vswatm.js";
|
|
10
|
-
import"./index-1rabqyq0.js";
|
|
14
|
+
} from "./index-qyxd5n9a.js";
|
|
11
15
|
import {
|
|
12
16
|
DEFAULT_SERVER_ENTRY
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import {
|
|
17
|
-
CLI_ARGS_OFFSET,
|
|
18
|
-
UNFOUND_INDEX,
|
|
19
|
-
WORKSPACE_COMMAND_ARGS_OFFSET
|
|
20
|
-
} from "./index-czwrxgdj.js";
|
|
21
|
-
import {
|
|
22
|
-
__require
|
|
23
|
-
} from "./index-mywsk201.js";
|
|
17
|
+
} from "./index-k4t9k1xk.js";
|
|
18
|
+
import"./index-92hmw204.js";
|
|
19
|
+
import"./index-1x1vah31.js";
|
|
24
20
|
|
|
25
21
|
// src/cli/index.ts
|
|
26
22
|
markBoot("cli imports evaluated");
|
|
@@ -58,7 +54,7 @@ if (command === "dev") {
|
|
|
58
54
|
}
|
|
59
55
|
const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
|
|
60
56
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
61
|
-
const { dev } = await import("./dev-
|
|
57
|
+
const { dev } = await import("./dev-6f0gry3y.js");
|
|
62
58
|
await dev(serverEntry, configPath, {
|
|
63
59
|
androidDevice,
|
|
64
60
|
eager: args.includes("--eager"),
|
|
@@ -66,7 +62,7 @@ if (command === "dev") {
|
|
|
66
62
|
mobile: !args.includes("--no-mobile")
|
|
67
63
|
});
|
|
68
64
|
} else if (command === "bun-patch") {
|
|
69
|
-
const { bunPatch } = await import("./patchedBun-
|
|
65
|
+
const { bunPatch } = await import("./patchedBun-m7vj5sks.js");
|
|
70
66
|
await bunPatch(args);
|
|
71
67
|
} else if (command === "start") {
|
|
72
68
|
sendTelemetryEvent("cli:command", { command });
|
|
@@ -74,7 +70,7 @@ if (command === "dev") {
|
|
|
74
70
|
const configPath = parseNamedArg("--config");
|
|
75
71
|
const positionalArgs = stripNamedArgs("--outdir", "--config").filter((arg) => arg !== "--prebuilt");
|
|
76
72
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
77
|
-
const { start } = await import("./start-
|
|
73
|
+
const { start } = await import("./start-3z3gtgm0.js");
|
|
78
74
|
await start(serverEntry, outdir, configPath, {
|
|
79
75
|
prebuilt: args.includes("--prebuilt")
|
|
80
76
|
});
|
|
@@ -84,20 +80,20 @@ if (command === "dev") {
|
|
|
84
80
|
const configPath = parseNamedArg("--config");
|
|
85
81
|
const positionalArgs = stripNamedArgs("--outdir", "--config");
|
|
86
82
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
87
|
-
const { start } = await import("./start-
|
|
83
|
+
const { start } = await import("./start-3z3gtgm0.js");
|
|
88
84
|
await start(serverEntry, outdir, configPath, { prepareOnly: true });
|
|
89
85
|
} else if (command === "build") {
|
|
90
86
|
sendTelemetryEvent("cli:command", { command });
|
|
91
87
|
const outdir = parseNamedArg("--outdir");
|
|
92
88
|
const configPath = parseNamedArg("--config");
|
|
93
|
-
const { build } = await import("./build-
|
|
89
|
+
const { build } = await import("./build-20y4b6rj.js");
|
|
94
90
|
await build(outdir, configPath, args.includes("--profile"));
|
|
95
91
|
} else if (command === "workspace") {
|
|
96
92
|
sendTelemetryEvent("cli:command", {
|
|
97
93
|
command: `workspace:${workspaceCommand ?? "unknown"}`
|
|
98
94
|
});
|
|
99
95
|
const configPath = parseNamedArg("--config");
|
|
100
|
-
const { workspace } = await import("./workspace-
|
|
96
|
+
const { workspace } = await import("./workspace-yetzedke.js");
|
|
101
97
|
await workspace(workspaceCommand, {
|
|
102
98
|
configPath,
|
|
103
99
|
noTui: args.includes("--no-tui")
|
|
@@ -109,61 +105,61 @@ if (command === "dev") {
|
|
|
109
105
|
await launchConfig(args);
|
|
110
106
|
} else if (command === "eslint") {
|
|
111
107
|
sendTelemetryEvent("cli:command", { command });
|
|
112
|
-
const { eslint } = await import("./eslint-
|
|
108
|
+
const { eslint } = await import("./eslint-zz0t0kfp.js");
|
|
113
109
|
await eslint(args);
|
|
114
110
|
} else if (command === "lint-proof") {
|
|
115
111
|
sendTelemetryEvent("cli:command", { command });
|
|
116
|
-
const { runLintProof } = await import("./lintProof-
|
|
112
|
+
const { runLintProof } = await import("./lintProof-qcwdvzcz.js");
|
|
117
113
|
process.exitCode = await runLintProof(args);
|
|
118
114
|
} else if (command === "prettier") {
|
|
119
115
|
sendTelemetryEvent("cli:command", { command });
|
|
120
|
-
const { prettier } = await import("./prettier-
|
|
116
|
+
const { prettier } = await import("./prettier-c1624g36.js");
|
|
121
117
|
await prettier(args);
|
|
122
118
|
} else if (command === "ls") {
|
|
123
119
|
sendTelemetryEvent("cli:command", { command: "ls" });
|
|
124
|
-
const { runLs } = await import("./ls-
|
|
120
|
+
const { runLs } = await import("./ls-nkspq73y.js");
|
|
125
121
|
await runLs(args);
|
|
126
122
|
} else if (command === "ps") {
|
|
127
123
|
sendTelemetryEvent("cli:command", { command: "ps" });
|
|
128
|
-
const { runPs } = await import("./ps-
|
|
124
|
+
const { runPs } = await import("./ps-0jedm91n.js");
|
|
129
125
|
await runPs(args);
|
|
130
126
|
} else if (command === "mem") {
|
|
131
127
|
sendTelemetryEvent("cli:command", { command: "mem" });
|
|
132
|
-
const { runMem } = await import("./mem-
|
|
128
|
+
const { runMem } = await import("./mem-h3f497cr.js");
|
|
133
129
|
await runMem(args);
|
|
134
130
|
} else if (command === "generate" || command === "g") {
|
|
135
131
|
sendTelemetryEvent("cli:command", { command: "generate" });
|
|
136
|
-
const { runGenerate } = await import("./generate-
|
|
132
|
+
const { runGenerate } = await import("./generate-nz4w03yz.js");
|
|
137
133
|
await runGenerate(args);
|
|
138
134
|
} else if (command === "add") {
|
|
139
135
|
sendTelemetryEvent("cli:command", { command: "add" });
|
|
140
|
-
const { runAdd } = await import("./add-
|
|
136
|
+
const { runAdd } = await import("./add-hvqeg5sz.js");
|
|
141
137
|
await runAdd(args);
|
|
142
138
|
} else if (command === "analyze") {
|
|
143
139
|
sendTelemetryEvent("cli:command", { command: "analyze" });
|
|
144
|
-
const { runAnalyze } = await import("./analyze-
|
|
140
|
+
const { runAnalyze } = await import("./analyze-c2x2aym5.js");
|
|
145
141
|
await runAnalyze(args);
|
|
146
142
|
} else if (command === "api") {
|
|
147
143
|
sendTelemetryEvent("cli:command", { command: "api" });
|
|
148
|
-
const { runApi } = await import("./api-
|
|
144
|
+
const { runApi } = await import("./api-rk13rfd9.js");
|
|
149
145
|
await runApi(args);
|
|
150
146
|
} else if (command === "remove") {
|
|
151
147
|
sendTelemetryEvent("cli:command", { command: "remove" });
|
|
152
|
-
const { runRemove } = await import("./remove-
|
|
148
|
+
const { runRemove } = await import("./remove-z0brj5nd.js");
|
|
153
149
|
await runRemove(args);
|
|
154
150
|
} else if (command === "htmx") {
|
|
155
151
|
sendTelemetryEvent("cli:command", { command: "htmx" });
|
|
156
|
-
const { runHtmx } = await import("./htmx-
|
|
152
|
+
const { runHtmx } = await import("./htmx-0xcaqrny.js");
|
|
157
153
|
await runHtmx(args);
|
|
158
154
|
} else if (command === "env") {
|
|
159
155
|
sendTelemetryEvent("cli:command", { command: "env" });
|
|
160
|
-
const { runEnv } = await import("./env-
|
|
156
|
+
const { runEnv } = await import("./env-2107nff1.js");
|
|
161
157
|
await runEnv(args);
|
|
162
158
|
} else if (command === "db") {
|
|
163
159
|
sendTelemetryEvent("cli:command", {
|
|
164
160
|
command: `db:${workspaceCommand ?? "unknown"}`
|
|
165
161
|
});
|
|
166
|
-
const { runDb } = await import("./db-
|
|
162
|
+
const { runDb } = await import("./db-p8pc325y.js");
|
|
167
163
|
try {
|
|
168
164
|
await runDb(args);
|
|
169
165
|
} catch (error) {
|
|
@@ -172,31 +168,31 @@ if (command === "dev") {
|
|
|
172
168
|
}
|
|
173
169
|
} else if (command === "logs") {
|
|
174
170
|
sendTelemetryEvent("cli:command", { command: "logs" });
|
|
175
|
-
const { runLogs } = await import("./logs-
|
|
171
|
+
const { runLogs } = await import("./logs-3p2vrq5h.js");
|
|
176
172
|
await runLogs(args);
|
|
177
173
|
} else if (command === "doctor") {
|
|
178
174
|
sendTelemetryEvent("cli:command", { command: "doctor" });
|
|
179
|
-
const { runDoctor } = await import("./doctor-
|
|
175
|
+
const { runDoctor } = await import("./doctor-8rm8p4dm.js");
|
|
180
176
|
await runDoctor(args);
|
|
181
177
|
} else if (command === "routes") {
|
|
182
178
|
sendTelemetryEvent("cli:command", { command: "routes" });
|
|
183
|
-
const { runRoutes } = await import("./routes-
|
|
179
|
+
const { runRoutes } = await import("./routes-ey0sw1eq.js");
|
|
184
180
|
await runRoutes(args);
|
|
185
181
|
} else if (command === "inspect") {
|
|
186
182
|
sendTelemetryEvent("cli:command", { command: "inspect" });
|
|
187
|
-
const { runInspect } = await import("./inspect-
|
|
183
|
+
const { runInspect } = await import("./inspect-5dj06x0m.js");
|
|
188
184
|
await runInspect(args);
|
|
189
185
|
} else if (command === "islands") {
|
|
190
186
|
sendTelemetryEvent("cli:command", { command: "islands" });
|
|
191
|
-
const { runIslands } = await import("./islands-
|
|
187
|
+
const { runIslands } = await import("./islands-z4adh55n.js");
|
|
192
188
|
await runIslands(args);
|
|
193
189
|
} else if (command === "info") {
|
|
194
190
|
sendTelemetryEvent("cli:command", { command });
|
|
195
|
-
const { info } = await import("./info-
|
|
191
|
+
const { info } = await import("./info-kx5510rq.js");
|
|
196
192
|
info();
|
|
197
193
|
} else if (command === "telemetry") {
|
|
198
194
|
sendTelemetryEvent("cli:command", { command });
|
|
199
|
-
const { telemetry } = await import("./telemetry-
|
|
195
|
+
const { telemetry } = await import("./telemetry-3wnc06wa.js");
|
|
200
196
|
telemetry(args);
|
|
201
197
|
} else if (command === "compile") {
|
|
202
198
|
sendTelemetryEvent("cli:command", { command });
|
|
@@ -205,13 +201,13 @@ if (command === "dev") {
|
|
|
205
201
|
const configPath = parseNamedArg("--config");
|
|
206
202
|
const positionalArgs = stripNamedArgs("--outdir", "--outfile", "--config");
|
|
207
203
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
208
|
-
const { compile } = await import("./compile-
|
|
204
|
+
const { compile } = await import("./compile-nf4qsqyd.js");
|
|
209
205
|
await compile(serverEntry, outdir, outfile, configPath);
|
|
210
206
|
} else if (command === "mobile") {
|
|
211
207
|
sendTelemetryEvent("cli:command", {
|
|
212
208
|
command: `mobile:${workspaceCommand ?? "unknown"}`
|
|
213
209
|
});
|
|
214
|
-
const { runMobile } = await import("./mobile-
|
|
210
|
+
const { runMobile } = await import("./mobile-m0cdh8cf.js");
|
|
215
211
|
try {
|
|
216
212
|
await runMobile(args);
|
|
217
213
|
} catch (error) {
|
|
@@ -221,19 +217,19 @@ if (command === "dev") {
|
|
|
221
217
|
} else if (command === "typecheck") {
|
|
222
218
|
sendTelemetryEvent("cli:command", { command });
|
|
223
219
|
const configPath = parseNamedArg("--config");
|
|
224
|
-
const { typecheck } = await import("./typecheck-
|
|
220
|
+
const { typecheck } = await import("./typecheck-nmf6e7k7.js");
|
|
225
221
|
await typecheck(configPath);
|
|
226
222
|
} else if (command === "migrate") {
|
|
227
223
|
sendTelemetryEvent("cli:command", { command });
|
|
228
|
-
const { migrate } = await import("./migrate-
|
|
224
|
+
const { migrate } = await import("./migrate-52bqqp08.js");
|
|
229
225
|
migrate(parseNamedArg("--path"));
|
|
230
226
|
} else if (command === "mkcert") {
|
|
231
227
|
sendTelemetryEvent("cli:command", { command });
|
|
232
|
-
const { setupMkcert } = await import("./devCert-
|
|
228
|
+
const { setupMkcert } = await import("./devCert-n33ep8pg.js");
|
|
233
229
|
setupMkcert();
|
|
234
230
|
} else if (command === "tunnel-relay") {
|
|
235
231
|
sendTelemetryEvent("cli:command", { command });
|
|
236
|
-
const { tunnelRelay } = await import("./tunnelRelay-
|
|
232
|
+
const { tunnelRelay } = await import("./tunnelRelay-19ay0fxn.js");
|
|
237
233
|
tunnelRelay();
|
|
238
234
|
} else {
|
|
239
235
|
const message = command ? `Unknown command: ${command}` : "No command specified";
|