@somewhere-tech/cli 0.31.17 → 0.31.19
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/commands/browser.js +1 -1
- package/dist/commands/browser.js.map +1 -1
- package/dist/commands/check.js +1 -2
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/dev.js +18 -383
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/status.js +0 -36
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/typecheck.js +1 -1
- package/dist/commands/typecheck.js.map +1 -1
- package/dist/commands/verify.js +1 -1
- package/dist/commands/verify.js.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/{local → lib}/browser-run.js +1 -1
- package/dist/lib/browser-run.js.map +1 -0
- package/dist/lib/chrome.js.map +1 -0
- package/dist/lib/envfile-write.js +2 -2
- package/dist/lib/envfile-write.js.map +1 -1
- package/dist/lib/frontend-dev.js +122 -0
- package/dist/lib/frontend-dev.js.map +1 -0
- package/dist/lib/init-agent-guide.js +15 -19
- package/dist/lib/init-agent-guide.js.map +1 -1
- package/dist/lib/init-green-template.js +1 -1
- package/dist/lib/platform-tools.js +4 -1
- package/dist/lib/platform-tools.js.map +1 -1
- package/dist/lib/project-urls.js +13 -0
- package/dist/lib/project-urls.js.map +1 -1
- package/npm-shrinkwrap.json +2 -17
- package/package.json +4 -6
- package/runtime/VENDOR.json +0 -2
- package/dist/commands/exec.js +0 -145
- package/dist/commands/exec.js.map +0 -1
- package/dist/local/browser-run.js.map +0 -1
- package/dist/local/chrome.js.map +0 -1
- package/dist/local/compiler-core.js +0 -51
- package/dist/local/compiler-core.js.map +0 -1
- package/dist/local/compiler.js +0 -683
- package/dist/local/compiler.js.map +0 -1
- package/dist/local/dev-server.js +0 -517
- package/dist/local/dev-server.js.map +0 -1
- package/dist/local/envfile.js +0 -40
- package/dist/local/envfile.js.map +0 -1
- package/dist/local/loader.js +0 -299
- package/dist/local/loader.js.map +0 -1
- package/dist/local/loopback.js +0 -129
- package/dist/local/loopback.js.map +0 -1
- package/dist/local/request-timing.js +0 -101
- package/dist/local/request-timing.js.map +0 -1
- package/dist/local/router.js +0 -114
- package/dist/local/router.js.map +0 -1
- package/dist/local/runtime.js +0 -345
- package/dist/local/runtime.js.map +0 -1
- package/dist/local/server.js +0 -309
- package/dist/local/server.js.map +0 -1
- package/dist/local/telemetry-filter.js +0 -120
- package/dist/local/telemetry-filter.js.map +0 -1
- package/node_modules/esbuild-wasm/LICENSE.md +0 -21
- package/node_modules/esbuild-wasm/README.md +0 -3
- package/node_modules/esbuild-wasm/bin/esbuild +0 -91
- package/node_modules/esbuild-wasm/esbuild.wasm +0 -0
- package/node_modules/esbuild-wasm/esm/browser.d.ts +0 -705
- package/node_modules/esbuild-wasm/esm/browser.js +0 -2393
- package/node_modules/esbuild-wasm/esm/browser.min.js +0 -20
- package/node_modules/esbuild-wasm/lib/browser.d.ts +0 -705
- package/node_modules/esbuild-wasm/lib/browser.js +0 -2438
- package/node_modules/esbuild-wasm/lib/browser.min.js +0 -22
- package/node_modules/esbuild-wasm/lib/main.d.ts +0 -705
- package/node_modules/esbuild-wasm/lib/main.js +0 -2051
- package/node_modules/esbuild-wasm/package.json +0 -19
- package/node_modules/esbuild-wasm/wasm_exec.js +0 -561
- package/node_modules/esbuild-wasm/wasm_exec_node.js +0 -39
- package/runtime/compiler/VENDOR.json +0 -64
- package/runtime/compiler/compile-core.cjs +0 -2007
- package/runtime/compiler/graph-contract.cjs +0 -124
- package/runtime/compiler/typed-functions.cjs +0 -575
- package/runtime/platform-context.mjs +0 -8193
- package/runtime/sw-init.mjs +0 -283
- /package/dist/{local → lib}/chrome.js +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct access to the pure half of the vendored compiler.
|
|
3
|
-
*
|
|
4
|
-
* compile-core.cjs splits on one question — does this need to know where
|
|
5
|
-
* things are installed? Everything that does not is exported at module scope
|
|
6
|
-
* and takes no host: detectTailwind, isFunctionPath, the dependency review.
|
|
7
|
-
* The CLI needs detectTailwind BEFORE it can build a host at all (which
|
|
8
|
-
* Tailwind engine to put in the toolchain cache is decided by the project's
|
|
9
|
-
* own CSS), so it reads those directly rather than constructing a compiler to
|
|
10
|
-
* ask.
|
|
11
|
-
*/
|
|
12
|
-
import { createRequire } from 'node:module';
|
|
13
|
-
import { dirname, join } from 'node:path';
|
|
14
|
-
import { fileURLToPath } from 'node:url';
|
|
15
|
-
let cached = null;
|
|
16
|
-
function vendoredRoot(root) {
|
|
17
|
-
return root ?? join(dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
18
|
-
}
|
|
19
|
-
export function readCompileCore(root) {
|
|
20
|
-
if (cached)
|
|
21
|
-
return cached;
|
|
22
|
-
const corePath = join(vendoredRoot(root), 'runtime', 'compiler', 'compile-core.cjs');
|
|
23
|
-
cached = createRequire(corePath)('./compile-core.cjs');
|
|
24
|
-
return cached;
|
|
25
|
-
}
|
|
26
|
-
let cachedPlatformModules = null;
|
|
27
|
-
/**
|
|
28
|
-
* The specifiers the PLATFORM provides, read from the vendored compiler's own
|
|
29
|
-
* `PLATFORM_MODULES` — the single enumeration that also builds the compiler's
|
|
30
|
-
* virtual-module resolver and its phantom-import exemption. Reading it here
|
|
31
|
-
* rather than restating it is the point: a hand-kept second list is how the CLI
|
|
32
|
-
* ends up telling a developer that `somewhere/db` is a missing npm package
|
|
33
|
-
* (tsk_53badecfb7).
|
|
34
|
-
*
|
|
35
|
-
* Never throws. A CLI whose diagnostics depend on this must still be able to
|
|
36
|
-
* print a diagnostic when the vendored file cannot be read.
|
|
37
|
-
*/
|
|
38
|
-
export function readPlatformModules(root) {
|
|
39
|
-
if (cachedPlatformModules)
|
|
40
|
-
return cachedPlatformModules;
|
|
41
|
-
try {
|
|
42
|
-
const path = join(vendoredRoot(root), 'runtime', 'compiler', 'typed-functions.cjs');
|
|
43
|
-
const mod = createRequire(path)('./typed-functions.cjs');
|
|
44
|
-
cachedPlatformModules = Array.isArray(mod.PLATFORM_MODULES) ? mod.PLATFORM_MODULES : [];
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
cachedPlatformModules = [];
|
|
48
|
-
}
|
|
49
|
-
return cachedPlatformModules;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=compiler-core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-core.js","sourceRoot":"","sources":["../../src/local/compiler-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAWzC,IAAI,MAAM,GAA2B,IAAI,CAAC;AAE1C,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;IACrF,MAAM,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CAAoB,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,IAAI,qBAAqB,GAA6B,IAAI,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,IAAI,qBAAqB;QAAE,OAAO,qBAAqB,CAAC;IACxD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,CAAC,CAAC;QACpF,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAoC,CAAC;QAC5F,qBAAqB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,CAAC;IAAC,MAAM,CAAC;QACP,qBAAqB,GAAG,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
|