diff --git a/docs/generated/packages/react/generators/host.json b/docs/generated/packages/react/generators/host.json index 700e419c6b577..0dd107cc2df90 100644 --- a/docs/generated/packages/react/generators/host.json +++ b/docs/generated/packages/react/generators/host.json @@ -171,6 +171,12 @@ "type": "boolean", "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.", "default": true + }, + "skipPackageJson": { + "description": "Do not add dependencies to `package.json`.", + "type": "boolean", + "default": false, + "x-priority": "internal" } }, "required": ["name"], diff --git a/docs/generated/packages/react/generators/remote.json b/docs/generated/packages/react/generators/remote.json index 2ebdb978c46f7..80f0e4ad06009 100644 --- a/docs/generated/packages/react/generators/remote.json +++ b/docs/generated/packages/react/generators/remote.json @@ -170,6 +170,12 @@ "type": "boolean", "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.", "default": true + }, + "skipPackageJson": { + "description": "Do not add dependencies to `package.json`.", + "type": "boolean", + "default": false, + "x-priority": "internal" } }, "required": ["name"], diff --git a/packages/react/src/generators/host/host.ts b/packages/react/src/generators/host/host.ts index 57b1335f3480f..d2b84948b8062 100644 --- a/packages/react/src/generators/host/host.ts +++ b/packages/react/src/generators/host/host.ts @@ -97,6 +97,7 @@ export async function hostGeneratorInternal( js: options.js, dynamic: options.dynamic, host: options.name, + skipPackageJson: options.skipPackageJson, }); tasks.push(remoteTask); remotePort++; diff --git a/packages/react/src/generators/host/schema.d.ts b/packages/react/src/generators/host/schema.d.ts index 4aecf9e144da0..b9935da5436a0 100644 --- a/packages/react/src/generators/host/schema.d.ts +++ b/packages/react/src/generators/host/schema.d.ts @@ -18,6 +18,7 @@ export interface Schema { setParserOptionsProject?: boolean; skipFormat?: boolean; skipNxJson?: boolean; + skipPackageJson?: boolean; ssr?: boolean; strict?: boolean; style: SupportedStyles; diff --git a/packages/react/src/generators/host/schema.json b/packages/react/src/generators/host/schema.json index 48b91cd1d670a..15b48643f2d4e 100644 --- a/packages/react/src/generators/host/schema.json +++ b/packages/react/src/generators/host/schema.json @@ -177,6 +177,12 @@ "type": "boolean", "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.", "default": true + }, + "skipPackageJson": { + "description": "Do not add dependencies to `package.json`.", + "type": "boolean", + "default": false, + "x-priority": "internal" } }, "required": ["name"], diff --git a/packages/react/src/generators/remote/schema.d.ts b/packages/react/src/generators/remote/schema.d.ts index 8256e7abfafe8..0c011fe07d54f 100644 --- a/packages/react/src/generators/remote/schema.d.ts +++ b/packages/react/src/generators/remote/schema.d.ts @@ -20,6 +20,7 @@ export interface Schema { setParserOptionsProject?: boolean; skipFormat: boolean; skipNxJson?: boolean; + skipPackageJson?: boolean; ssr?: boolean; strict?: boolean; style: SupportedStyles; diff --git a/packages/react/src/generators/remote/schema.json b/packages/react/src/generators/remote/schema.json index b0e22410ca61d..65baf4876804d 100644 --- a/packages/react/src/generators/remote/schema.json +++ b/packages/react/src/generators/remote/schema.json @@ -176,6 +176,12 @@ "type": "boolean", "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.", "default": true + }, + "skipPackageJson": { + "description": "Do not add dependencies to `package.json`.", + "type": "boolean", + "default": false, + "x-priority": "internal" } }, "required": ["name"],