@arcote.tech/arc-cli 0.8.3 → 0.8.5
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/index.js +400 -194
- package/package.json +10 -10
- package/src/builder/module-builder.ts +43 -2
- package/src/builder/seed-guard.ts +143 -0
- package/src/deploy/bootstrap.ts +35 -1
- package/src/deploy/remote-state.ts +9 -0
- package/src/platform/server.ts +190 -52
- package/src/platform/shared.ts +8 -2
package/src/platform/shared.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
type BuildCache,
|
|
24
24
|
} from "../builder/build-cache";
|
|
25
25
|
import { extractAccessMap } from "../builder/access-extractor";
|
|
26
|
+
import { assertSeedsServerGated } from "../builder/seed-guard";
|
|
26
27
|
import { buildPeerShell, type PeerShellResult } from "../builder/peer-shell";
|
|
27
28
|
import type { FederationConfig } from "@arcote.tech/platform";
|
|
28
29
|
import {
|
|
@@ -172,9 +173,14 @@ export async function buildAll(
|
|
|
172
173
|
|
|
173
174
|
log(`Building (concurrency parallel${noCache ? ", no-cache" : ""})...`);
|
|
174
175
|
|
|
175
|
-
// Phase 0 — invariant
|
|
176
|
-
// else chunk grouping (per-package) silently
|
|
176
|
+
// Phase 0 — invariant checks before any work.
|
|
177
|
+
// (a) one module() per package, else chunk grouping (per-package) silently
|
|
178
|
+
// mis-assigns the extra module.
|
|
177
179
|
assertOneModulePerPackage(ws.packages);
|
|
180
|
+
// (b) seedy owinięte ONLY_SERVER — inaczej literał danych seed wycieka do
|
|
181
|
+
// publicznego bundla klienta (patrz seed-guard.ts). Rusza NAJWCZEŚNIEJ:
|
|
182
|
+
// przed drogim buildem serwera i access-extractorem — szybki, czytelny fail.
|
|
183
|
+
assertSeedsServerGated(ws.packages, ws.rootDir);
|
|
178
184
|
|
|
179
185
|
// Phase 1 — per-package BROWSER context bundles + type declarations.
|
|
180
186
|
await buildContextPackages(ws.rootDir, ws.packages, cache, noCache);
|