Package Exports
- @module-federation/cli
- @module-federation/cli/dist/index.cjs.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@module-federation/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@module-federation/cli
Module Federation CLI
All commands
To view all available CLI commands, run the following command in the project directory:
npx @module-federation/cli -h
The output is shown below:
Usage: mf <command> [options]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
dts [options] generate or fetch the mf types
help [command] display help for command
mf dts
The mf dts command is used to generate or fetch remote types.
Usage: mf dts [options]
generate or fetch the mf types
Options:
--root <root> specify the project root directory
--output <output> specify the generated dts output directory
--fetch <boolean> fetch types from remote, default is true (default: true)
--generate <boolean> generate types, default is true (default: true)
-c --config <config> specify the configuration file, can be a relative or absolute path
-h, --help display help for command
Documentation
See Documentation.
License
MIT.