zephyr-xpack-internal 0.0.0-canary-20250918133028 → 0.0.0-canary.0
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/federation-dashboard-legacy/get-build-stats.js +1 -14
- package/dist/federation-dashboard-legacy/get-build-stats.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/hooks/ze-emit-manifest.d.ts +0 -37
- package/dist/hooks/ze-emit-manifest.js +0 -29
- package/dist/hooks/ze-emit-manifest.js.map +0 -1
|
@@ -36,19 +36,6 @@ async function getBuildStats({ stats, stats_json, pluginOptions, EDGE_URL, DOMAI
|
|
|
36
36
|
: pluginOptions.mfConfig;
|
|
37
37
|
const { name, filename } = mfConfig ? ((0, extract_federation_config_1.extractFederatedConfig)(mfConfig) ?? {}) : {};
|
|
38
38
|
const remotes = ze_engine.federated_dependencies;
|
|
39
|
-
// Build zephyrDependencies from federated_dependencies
|
|
40
|
-
const zephyrDependencies = {};
|
|
41
|
-
if (remotes) {
|
|
42
|
-
for (const dep of remotes) {
|
|
43
|
-
zephyrDependencies[dep.name] = {
|
|
44
|
-
application_uid: dep.application_uid,
|
|
45
|
-
remote_entry_url: dep.remote_entry_url,
|
|
46
|
-
default_url: dep.default_url,
|
|
47
|
-
name: dep.name,
|
|
48
|
-
library_type: dep.library_type || 'module',
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
39
|
const data_overrides = {
|
|
53
40
|
id: application_uid,
|
|
54
41
|
name: name,
|
|
@@ -63,7 +50,7 @@ async function getBuildStats({ stats, stats_json, pluginOptions, EDGE_URL, DOMAI
|
|
|
63
50
|
remotes: remotes?.map(({ application_uid }) => application_uid) ?? [],
|
|
64
51
|
context: { isCI },
|
|
65
52
|
build_target,
|
|
66
|
-
zephyrDependencies,
|
|
53
|
+
zephyrDependencies: ze_engine.zephyr_dependencies,
|
|
67
54
|
};
|
|
68
55
|
// todo: extend data
|
|
69
56
|
const res = Object.assign({}, convertedGraph, data_overrides, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-build-stats.js","sourceRoot":"","sources":["../../src/federation-dashboard-legacy/get-build-stats.ts"],"names":[],"mappings":";;AAiBA,
|
|
1
|
+
{"version":3,"file":"get-build-stats.js","sourceRoot":"","sources":["../../src/federation-dashboard-legacy/get-build-stats.ts"],"names":[],"mappings":";;AAiBA,sCA8EC;AA9FD,+CAA6D;AAE7D,0FAAoF;AAEpF,6GAA0G;AAYnG,KAAK,UAAU,aAAa,CAA2C,EAC5E,KAAK,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,SAAS,EAAE,SAAS,GAAG,SAAS,GAOjC;IACC,qBAAM,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC;IAC9C,MAAM,GAAG,GAAG,SAAS,CAAC,qBAAqB,CAAC;IAC5C,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC,aAAa,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC;IAC/B,MAAM,eAAe,GAAG,IAAI,qDAAyB,CAAC;QACpD,GAAG;QACH,GAAG;QACH,OAAO,EAAE;YACP,IAAI;SACL;KACF,CAAC,CAAC;IAEH,qBAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE,aAAa,CAAC,CAAC;IACjE,MAAM,cAAc,GAAG,eAAe,CAAC,mBAAmB,CAAC;QACzD,KAAK;QACL,UAAU;QACV,aAAa;KACd,CAAC,CAAC;IAEH,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,0BAAW,CAAC,uBAAQ,CAAC,8BAA8B,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,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,cAAc,EAAE;QAC5D,OAAO,EAAE,IAAI,EAAE,+BAA+B;QAC9C,IAAI,EAAE,EAAE,EAAE,wDAAwD;KACnE,CAAqB,CAAC;IACvB,qBAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,5 @@ export type { XPackConfiguration, ModuleFederationPlugin, XStats, XStatsCompilat
|
|
|
6
6
|
export { getBuildStats } from './federation-dashboard-legacy/get-build-stats';
|
|
7
7
|
export { setupZeDeploy } from './hooks/ze-setup-ze-deploy';
|
|
8
8
|
export { logBuildSteps } from './hooks/ze-setup-build-steps-logging';
|
|
9
|
-
export { setupManifestEmission } from './hooks/ze-emit-manifest';
|
|
10
9
|
export { xpack_zephyr_agent } from './xpack-extract/ze-xpack-upload-agent';
|
|
11
10
|
export { detectAndStoreBaseHref } from './basehref/basehref-integration';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.detectAndStoreBaseHref = exports.xpack_zephyr_agent = exports.
|
|
3
|
+
exports.detectAndStoreBaseHref = exports.xpack_zephyr_agent = exports.logBuildSteps = exports.setupZeDeploy = exports.getBuildStats = exports.buildWebpackAssetMap = exports.xpack_delegate_module_template = exports.mutWebpackFederatedRemotesConfig = exports.makeCopyOfModuleFederationOptions = exports.extractFederatedDependencyPairs = exports.isModuleFederationPlugin = exports.emitDeploymentDone = exports.onDeploymentDone = void 0;
|
|
4
4
|
var lifecycle_events_1 = require("./lifecycle-events");
|
|
5
5
|
Object.defineProperty(exports, "onDeploymentDone", { enumerable: true, get: function () { return lifecycle_events_1.onDeploymentDone; } });
|
|
6
6
|
Object.defineProperty(exports, "emitDeploymentDone", { enumerable: true, get: function () { return lifecycle_events_1.emitDeploymentDone; } });
|
|
@@ -19,8 +19,6 @@ var ze_setup_ze_deploy_1 = require("./hooks/ze-setup-ze-deploy");
|
|
|
19
19
|
Object.defineProperty(exports, "setupZeDeploy", { enumerable: true, get: function () { return ze_setup_ze_deploy_1.setupZeDeploy; } });
|
|
20
20
|
var ze_setup_build_steps_logging_1 = require("./hooks/ze-setup-build-steps-logging");
|
|
21
21
|
Object.defineProperty(exports, "logBuildSteps", { enumerable: true, get: function () { return ze_setup_build_steps_logging_1.logBuildSteps; } });
|
|
22
|
-
var ze_emit_manifest_1 = require("./hooks/ze-emit-manifest");
|
|
23
|
-
Object.defineProperty(exports, "setupManifestEmission", { enumerable: true, get: function () { return ze_emit_manifest_1.setupManifestEmission; } });
|
|
24
22
|
var ze_xpack_upload_agent_1 = require("./xpack-extract/ze-xpack-upload-agent");
|
|
25
23
|
Object.defineProperty(exports, "xpack_zephyr_agent", { enumerable: true, get: function () { return ze_xpack_upload_agent_1.xpack_zephyr_agent; } });
|
|
26
24
|
var basehref_integration_1 = require("./basehref/basehref-integration");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA0E;AAAjE,oHAAA,gBAAgB,OAAA;AAAE,sHAAA,kBAAkB,OAAA;AAE7C,2FAAuF;AAA9E,uIAAA,wBAAwB,OAAA;AACjC,iDAKyB;AAJvB,gIAAA,+BAA+B,OAAA;AAC/B,kIAAA,iCAAiC,OAAA;AACjC,iIAAA,gCAAgC,OAAA;AAChC,+HAAA,8BAA8B,OAAA;AAEhC,qFAAgF;AAAvE,gIAAA,oBAAoB,OAAA;AAS7B,iFAA8E;AAArE,gHAAA,aAAa,OAAA;AAEtB,iEAA2D;AAAlD,mHAAA,aAAa,OAAA;AACtB,qFAAqE;AAA5D,6HAAA,aAAa,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA0E;AAAjE,oHAAA,gBAAgB,OAAA;AAAE,sHAAA,kBAAkB,OAAA;AAE7C,2FAAuF;AAA9E,uIAAA,wBAAwB,OAAA;AACjC,iDAKyB;AAJvB,gIAAA,+BAA+B,OAAA;AAC/B,kIAAA,iCAAiC,OAAA;AACjC,iIAAA,gCAAgC,OAAA;AAChC,+HAAA,8BAA8B,OAAA;AAEhC,qFAAgF;AAAvE,gIAAA,oBAAoB,OAAA;AAS7B,iFAA8E;AAArE,gHAAA,aAAa,OAAA;AAEtB,iEAA2D;AAAlD,mHAAA,aAAa,OAAA;AACtB,qFAAqE;AAA5D,6HAAA,aAAa,OAAA;AAEtB,+EAA2E;AAAlE,2HAAA,kBAAkB,OAAA;AAE3B,wEAAyE;AAAhE,8HAAA,sBAAsB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-xpack-internal",
|
|
3
|
-
"version": "0.0.0-canary
|
|
3
|
+
"version": "0.0.0-canary.0",
|
|
4
4
|
"description": "Xpack internals for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@module-federation/automatic-vendor-federation": "^1.2.1",
|
|
20
20
|
"is-ci": "^4.1.0",
|
|
21
21
|
"tslib": "^2.8.1",
|
|
22
|
-
"zephyr-agent": "0.0.0-canary
|
|
23
|
-
"zephyr-edge-contract": "0.0.0-canary
|
|
22
|
+
"zephyr-agent": "0.0.0-canary.0",
|
|
23
|
+
"zephyr-edge-contract": "0.0.0-canary.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/is-ci": "3.0.4",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public",
|
|
34
|
-
"provenance":
|
|
34
|
+
"provenance": false
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "nx run zephyr-xpack-internal:build",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type ZephyrEngine } from 'zephyr-agent';
|
|
2
|
-
interface EmitManifestOptions {
|
|
3
|
-
pluginName: string;
|
|
4
|
-
zephyr_engine: ZephyrEngine;
|
|
5
|
-
}
|
|
6
|
-
interface EmitManifestCompiler {
|
|
7
|
-
webpack: {
|
|
8
|
-
sources: {
|
|
9
|
-
RawSource: new (source: string | Buffer) => any;
|
|
10
|
-
};
|
|
11
|
-
Compilation: {
|
|
12
|
-
PROCESS_ASSETS_STAGE_ADDITIONAL: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
hooks: {
|
|
16
|
-
thisCompilation: {
|
|
17
|
-
tap: (pluginName: string, cb: (compilation: EmitManifestCompilation) => void) => void;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface EmitManifestCompilation {
|
|
22
|
-
hooks: {
|
|
23
|
-
processAssets: {
|
|
24
|
-
tapPromise: (options: {
|
|
25
|
-
name: string;
|
|
26
|
-
stage: number;
|
|
27
|
-
}, cb: (assets: Record<string, any>) => Promise<void>) => void;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
emitAsset: (filename: string, source: any) => void;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Emits the zephyr-manifest.json file during the build process This ensures the manifest
|
|
34
|
-
* is available for local development
|
|
35
|
-
*/
|
|
36
|
-
export declare function setupManifestEmission<T extends EmitManifestOptions, XCompiler extends EmitManifestCompiler>(pluginOptions: T, compiler: XCompiler): void;
|
|
37
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupManifestEmission = setupManifestEmission;
|
|
4
|
-
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
-
/**
|
|
6
|
-
* Emits the zephyr-manifest.json file during the build process This ensures the manifest
|
|
7
|
-
* is available for local development
|
|
8
|
-
*/
|
|
9
|
-
function setupManifestEmission(pluginOptions, compiler) {
|
|
10
|
-
const { pluginName, zephyr_engine } = pluginOptions;
|
|
11
|
-
const { RawSource } = compiler.webpack.sources;
|
|
12
|
-
compiler.hooks.thisCompilation.tap(pluginName, (compilation) => {
|
|
13
|
-
compilation.hooks.processAssets.tapPromise({
|
|
14
|
-
name: `${pluginName}:EmitManifest`,
|
|
15
|
-
stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,
|
|
16
|
-
}, async () => {
|
|
17
|
-
// Wait for dependencies to be resolved
|
|
18
|
-
if (!zephyr_engine.federated_dependencies) {
|
|
19
|
-
zephyr_agent_1.ze_log.snapshot('[Zephyr Manifest] No federated dependencies to emit');
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
// Convert to JSON
|
|
23
|
-
const manifestContent = (0, zephyr_agent_1.createManifestContent)(zephyr_engine.federated_dependencies);
|
|
24
|
-
// Emit the asset
|
|
25
|
-
compilation.emitAsset('zephyr-manifest.json', new RawSource(manifestContent));
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=ze-emit-manifest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ze-emit-manifest.js","sourceRoot":"","sources":["../../src/hooks/ze-emit-manifest.ts"],"names":[],"mappings":";;AAsCA,sDA8BC;AApED,+CAAgF;AAkChF;;;GAGG;AACH,SAAgB,qBAAqB,CAGnC,aAAgB,EAAE,QAAmB;IACrC,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,aAAa,CAAC;IACpD,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;IAE/C,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,EAAE;QAC7D,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CACxC;YACE,IAAI,EAAE,GAAG,UAAU,eAAe;YAClC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,+BAA+B;SACpE,EACD,KAAK,IAAI,EAAE;YACT,uCAAuC;YACvC,IAAI,CAAC,aAAa,CAAC,sBAAsB,EAAE,CAAC;gBAC1C,qBAAM,CAAC,QAAQ,CAAC,qDAAqD,CAAC,CAAC;gBACvE,OAAO;YACT,CAAC;YAED,kBAAkB;YAClB,MAAM,eAAe,GAAG,IAAA,oCAAqB,EAC3C,aAAa,CAAC,sBAAsB,CACrC,CAAC;YAEF,iBAAiB;YACjB,WAAW,CAAC,SAAS,CAAC,sBAAsB,EAAE,IAAI,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;QAChF,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|