Skip to content

Commit cc6fee9

Browse files
Merge pull request #147 from LoaderB0T/main
Use "number" for port parameter during init
2 parents ee6ffe9 + 8d13356 commit cc6fee9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libs/mf/src/schematics/mf/schema.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface MfSchematicSchema {
22
project: string;
3-
port: string;
4-
nxBuilders: boolean | undefined
3+
port: number;
4+
nxBuilders: boolean | undefined;
55
}

libs/mf/src/schematics/mf/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"x-prompt": "Project name (press enter for default project)"
1515
},
1616
"port": {
17-
"type": "string",
17+
"type": "number",
1818
"description": "The port to use for the federated module (remote, micro frontend, etc.)",
1919
"x-prompt": "Port to use",
2020
"$default": {

libs/mf/src/schematics/mf/schematic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default function config (options: MfSchematicSchema): Rule {
192192

193193
const configPath = path.join(projectRoot, 'webpack.config.js').replace(/\\/g, '/');
194194
const configProdPath = path.join(projectRoot, 'webpack.prod.config.js').replace(/\\/g, '/');
195-
const port = parseInt(options.port);
195+
const port = options.port;
196196
const main = projectConfig.architect.build.options.main;
197197

198198
const relWorkspaceRoot = path.relative(projectRoot, '');

0 commit comments

Comments
 (0)