@ws-test-realm/admin-kit 0.2.6-ng16 → 0.2.7-ng16

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.
@@ -53,6 +53,20 @@ function partitionByKind(workspaceDir, names) {
53
53
  function buildLibs({ workspaceDir, restrictTo = [], withDeps = false }) {
54
54
  const { order, angularJson } = loadOrder({ workspaceDir, restrictTo, withDeps });
55
55
 
56
+ // Flush native-federation's shared-chunk cache at the start of every build.
57
+ // The cache (under `<workspace>/node_modules/.cache/native-federation/`)
58
+ // keys by output filename only, so changes to `federation.config.js`'s
59
+ // share map don't invalidate stale chunks — a workspace lib whose set of
60
+ // externals/inlines changed will keep emitting the previous build's
61
+ // output. Cheaper to always rebuild than to debug stale-chunk classes of
62
+ // bugs; the cost is recompiling the third-party Angular shared chunks
63
+ // each pass.
64
+ const cacheDir = path.join(workspaceDir, "node_modules", ".cache", "native-federation");
65
+ if (fs.existsSync(cacheDir)) {
66
+ fs.rmSync(cacheDir, { recursive: true, force: true });
67
+ console.log(`Flushed native-federation cache: ${cacheDir}`);
68
+ }
69
+
56
70
  console.log(`\n=== Build order ===`);
57
71
  order.forEach((n, i) => console.log(` ${i + 1}. ${n}`));
58
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ws-test-realm/admin-kit",
3
- "version": "0.2.6-ng16",
3
+ "version": "0.2.7-ng16",
4
4
  "description": "Workflow CLI + scaffolding for Wiresphere admin-modules workspaces (Angular 16 + native-federation line). Ships `ws-init-workspace`, `ws-modules` (build+deploy driver), `ws-generate-module`/`ws-drop-module`, `ws-wire-host`, `ws-wire-pom`, `ws-sync-paths`, and `ws-purge`. Depends on @ws-test-realm/devkit (toolchain BOM) + @ws-test-realm/shared (runtime BOM + native-federation share map).",
5
5
  "license": "Artistic-2.0",
6
6
  "publishConfig": {