@ws-test-realm/admin-kit 0.1.13 → 0.1.14

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.
@@ -7,27 +7,17 @@ const { loadDeployContext, resolveTarget } = require("./target-resolution");
7
7
  const { promotePeerDeps, syncFederationWorkspace } = require("./federation-peers");
8
8
 
9
9
  function copyTypes(distLib, hostFederationDir) {
10
- // Preserve any existing node_modules dir under the staged location —
11
- // npm's workspace install populated it and the next syncFederationWorkspace
12
- // run will reconcile. Replacing it on every type-copy would force a
13
- // fresh per-lib install instead of letting npm hoist across siblings.
14
- const preservedNodeModules = path.join(hostFederationDir, "node_modules");
15
- let cached = null;
16
- if (fs.existsSync(preservedNodeModules)) {
17
- cached = preservedNodeModules + `.preserve-${process.pid}`;
18
- fs.renameSync(preservedNodeModules, cached);
19
- }
20
10
  if (fs.existsSync(hostFederationDir)) {
21
11
  fs.rmSync(hostFederationDir, { recursive: true, force: true });
22
12
  }
23
13
  fs.mkdirSync(hostFederationDir, { recursive: true });
24
14
  fs.cpSync(distLib, hostFederationDir, { recursive: true });
25
- if (cached) {
26
- fs.renameSync(cached, preservedNodeModules);
27
- }
28
15
  // Promote peerDependencies → dependencies in the staged package.json so
29
16
  // npm's workspace install actually installs them. The producer's source
30
17
  // package.json is untouched; this only affects the host-staged copy.
18
+ // syncFederationWorkspace runs once at the end of the deploy loop and
19
+ // re-establishes <federationDir>/node_modules from scratch, so we don't
20
+ // need to preserve any prior node_modules under <id>/.
31
21
  promotePeerDeps(hostFederationDir);
32
22
  }
33
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ws-test-realm/admin-kit",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Workflow CLI + scaffolding for Wiresphere admin-modules workspaces. Ships `ws-init-workspace` (init/merge into a project, stamps @wiresphere/shared's `getOverrides()` into the workspace's npm overrides block), `ws-modules` (build/pack/deploy driver), `ws-generate-module`/`ws-drop-module`, `ws-wire-host`, `ws-wire-pom`, `ws-sync-paths`, and `ws-pack-remote`. Depends on @wiresphere/devkit (toolchain BOM, peerDeps); pairs with @wiresphere/shared (runtime BOM + MF share map + overrides manifest). Requires npm 9+ for overrides + peerDep resolution to coexist cleanly.",
5
5
  "license": "Artistic-2.0",
6
6
  "publishConfig": {