@ws-test-realm/admin-kit 0.2.2-ng16 → 0.2.3-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ws-test-realm/admin-kit",
3
- "version": "0.2.2-ng16",
3
+ "version": "0.2.3-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": {
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@angular-architects/native-federation": "^16.0.0",
29
- "@ws-test-realm/devkit": "file:/Users/ph/projects/ws-admin-aux/devkit",
30
- "@ws-test-realm/shared": "file:/Users/ph/projects/ws-admin-aux/shared",
29
+ "@ws-test-realm/devkit": "^0.4.0-ng16",
30
+ "@ws-test-realm/shared": "^0.4.1-ng16",
31
31
  "adm-zip": "^0.5.10",
32
32
  "fast-xml-parser": "^4.3.0"
33
33
  }
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "prettier": "@ws-test-realm/devkit/prettier.config.js",
19
19
  "dependencies": {
20
- "@ws-test-realm/shared": "^0.4.0-ng16",
20
+ "@ws-test-realm/shared": "^0.4.1-ng16",
21
21
  "@ws-test-realm/ws-core": "^0.1.0-ng16"
22
22
  },
23
23
  "devDependencies": {
24
- "@ws-test-realm/admin-kit": "^0.2.0-ng16",
24
+ "@ws-test-realm/admin-kit": "^0.2.3-ng16",
25
25
  "@ws-test-realm/devkit": "^0.4.0-ng16"
26
26
  }
27
27
  }
@@ -1,11 +1,19 @@
1
- const { withNativeFederation } = require('@angular-architects/native-federation/config');
2
- const { sharedDescriptors } = require('@ws-test-realm/shared');
1
+ const { withNativeFederation, share } = require('@angular-architects/native-federation/config');
2
+ const { sharedDescriptors, WORKSPACE_LIBS } = require('@ws-test-realm/shared');
3
3
 
4
4
  module.exports = withNativeFederation({
5
5
  name: '__camelName__Module',
6
6
  exposes: {
7
- './Module': './src/public-api.ts',
7
+ // Thin re-export shim so the exposed chunk delegates to the singleton
8
+ // shared chunk for this package (declared in `shared` below). Without
9
+ // the shim, esbuild would inline the whole library here and decorator
10
+ // side effects would fire a second time on remote load.
11
+ './Module': './src/exposed-module.ts',
8
12
  },
9
- shared: sharedDescriptors(),
13
+ // share() expands includeSecondaries against each package's exports field.
14
+ // withNativeFederation's own share() invocation is commented out upstream.
15
+ // Self-share this package so siblings consuming it via bare specifiers
16
+ // resolve to the same singleton chunk at runtime.
17
+ shared: { ...share(sharedDescriptors()), __name__: WORKSPACE_LIBS },
10
18
  skip: ['rxjs/ajax', 'rxjs/fetch', 'rxjs/testing', 'rxjs/webSocket'],
11
19
  });
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "__name__",
3
3
  "version": "0.0.1",
4
+ "module": "../../dist/__name__/fesm2022/__name__.mjs",
5
+ "sideEffects": false,
4
6
  "peerDependencies": {
5
7
  "@angular/common": "16.2.12",
6
8
  "@angular/core": "16.2.12",
@@ -0,0 +1 @@
1
+ export * from '__name__';