@module-federation/cli 0.12.0 → 0.13.1
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/index.cjs.js +4 -3
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -6,6 +6,7 @@ var sdk = require('@module-federation/sdk');
|
|
|
6
6
|
var chalk = require('chalk');
|
|
7
7
|
var path = require('path');
|
|
8
8
|
var nodeBundleRequire = require('@modern-js/node-bundle-require');
|
|
9
|
+
var url = require('url');
|
|
9
10
|
|
|
10
11
|
var applyCommonOptions = function(command) {
|
|
11
12
|
command.option('-c --config <config>', 'specify the configuration file, can be a relative or absolute path');
|
|
@@ -443,7 +444,7 @@ function _readConfig() {
|
|
|
443
444
|
preBundlePath = _state.sent();
|
|
444
445
|
return [
|
|
445
446
|
4,
|
|
446
|
-
import(preBundlePath)
|
|
447
|
+
import(url.pathToFileURL(preBundlePath).href)
|
|
447
448
|
];
|
|
448
449
|
case 2:
|
|
449
450
|
mfConfig = _state.sent().default.default;
|
|
@@ -668,10 +669,10 @@ function cli(cliOptions) {
|
|
|
668
669
|
function runCli(options) {
|
|
669
670
|
var normalizedOptions = _object_spread({
|
|
670
671
|
loggerPrefix: PREFIX,
|
|
671
|
-
welcomeMsg: "".concat("Module Federation v".concat("0.
|
|
672
|
+
welcomeMsg: "".concat("Module Federation v".concat("0.13.1"), "\n"),
|
|
672
673
|
name: 'mf',
|
|
673
674
|
readConfig: readConfig,
|
|
674
|
-
version: "0.
|
|
675
|
+
version: "0.13.1",
|
|
675
676
|
applyCommands: function() {}
|
|
676
677
|
}, options);
|
|
677
678
|
logger.setPrefix(normalizedOptions.loggerPrefix);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Module Federation CLI",
|
|
6
6
|
"homepage": "https://module-federation.io",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"commander": "11.1.0",
|
|
26
26
|
"chalk": "3.0.0",
|
|
27
27
|
"@modern-js/node-bundle-require": "2.65.1",
|
|
28
|
-
"@module-federation/sdk": "0.
|
|
29
|
-
"@module-federation/dts-plugin": "0.
|
|
28
|
+
"@module-federation/sdk": "0.13.1",
|
|
29
|
+
"@module-federation/dts-plugin": "0.13.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "~16.11.7"
|