@ws-test-realm/admin-kit 0.2.7-ng16 → 0.3.1-ng17

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.
@@ -64,9 +64,13 @@ function copyAndSubstitute(src, dest, tokens) {
64
64
  // dist/<name>-remote/. Deployed to the fiddle; consumed at
65
65
  // RUNTIME via the host's initFederation + import map.
66
66
  //
67
- // esbuild → @angular-devkit/build-angular:browser-esbuild. The bundle
68
- // target the native-federation builder wraps. Output dir
69
- // dist/<name>-remote/ keeps it separate from the lib output.
67
+ // esbuild → @angular-devkit/build-angular:application. The bundle
68
+ // target the native-federation builder wraps (NF 17.1+ requires
69
+ // the application builder). Output dir dist/<name>-remote/ keeps
70
+ // it separate from the lib output; outputPath.browser is
71
+ // flattened to "" so federation chunks land at the dist root
72
+ // rather than dist/<name>-remote/browser/, keeping the deploy
73
+ // layout consistent with the pre-ng17 line.
70
74
  //
71
75
  // Every module is dual-build by default — any project could grow a type-level
72
76
  // consumer (pluggable slots, base components), and the dual invariant
@@ -103,11 +107,11 @@ function registerInAngularJson(workspaceDir, name) {
103
107
  defaultConfiguration: "production",
104
108
  },
105
109
  esbuild: {
106
- builder: "@angular-devkit/build-angular:browser-esbuild",
110
+ builder: "@angular-devkit/build-angular:application",
107
111
  options: {
108
- outputPath: `dist/${name}-remote`,
112
+ outputPath: { base: `dist/${name}-remote`, browser: "" },
109
113
  index: `projects/${name}/src/index.html`,
110
- main: `projects/${name}/src/main.ts`,
114
+ browser: `projects/${name}/src/main.ts`,
111
115
  polyfills: [],
112
116
  tsConfig: `projects/${name}/tsconfig.app.json`,
113
117
  // Cross-workspace federation siblings reach this workspace via
@@ -117,6 +121,20 @@ function registerInAngularJson(workspaceDir, name) {
117
121
  // peers are installed) rather than walking up from the symlink
118
122
  // target in the fiddle.
119
123
  preserveSymlinks: true,
124
+ // Copy the project's `assets/` into the federation output so the
125
+ // fiddle's `/api/v1/admin-federation/asset/<id>/...` endpoint can
126
+ // serve them. The endpoint resolves to
127
+ // `META-INF/federation/<id>/remote/<subpath>` (jar target) or
128
+ // `<ext-dir>/remote/<subpath>` (ext target); packIntoJar /
129
+ // deployExt mirror whatever's in `dist/<id>-remote/` into that
130
+ // `remote/` directory, so anything here becomes addressable.
131
+ assets: [
132
+ {
133
+ glob: "**/*",
134
+ input: `projects/${name}/assets/`,
135
+ output: "/assets/",
136
+ },
137
+ ],
120
138
  styles: [],
121
139
  scripts: [],
122
140
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-test-realm/admin-kit",
3
- "version": "0.2.7-ng16",
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).",
3
+ "version": "0.3.1-ng17",
4
+ "description": "Workflow CLI + scaffolding for Wiresphere admin-modules workspaces (Angular 17 + 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": {
7
7
  "access": "public"
@@ -26,9 +26,9 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
- "@angular-architects/native-federation": "^16.0.0",
30
- "@ws-test-realm/devkit": "^0.4.0-ng16",
31
- "@ws-test-realm/shared": "^0.4.1-ng16",
29
+ "@angular-architects/native-federation": "^17.0.0",
30
+ "@ws-test-realm/devkit": "^0.5.0-ng17",
31
+ "@ws-test-realm/shared": "^0.5.0-ng17",
32
32
  "adm-zip": "^0.5.10",
33
33
  "fast-xml-parser": "^4.3.0"
34
34
  }
@@ -4,10 +4,10 @@
4
4
  "module": "../../dist/__name__/fesm2022/__name__.mjs",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
- "@angular/common": "16.2.12",
8
- "@angular/core": "16.2.12",
9
- "@angular/forms": "16.2.12",
10
- "@angular/router": "16.2.12",
7
+ "@angular/common": "^17.0.0",
8
+ "@angular/core": "^17.0.0",
9
+ "@angular/forms": "^17.0.0",
10
+ "@angular/router": "^17.0.0",
11
11
  "rxjs": "~7.8.0"
12
12
  },
13
13
  "dependencies": {