Skip to content

Commit

Permalink
fix(core): handle optional cli property when writing workspace config…
Browse files Browse the repository at this point in the history
…uration in the ng cli adapter (#10758)
  • Loading branch information
leosvelperez committed Jun 15, 2022
1 parent a4d9da4 commit 986b053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nx/src/adapter/ngcli-adapter.ts
Expand Up @@ -436,7 +436,7 @@ export class NxScopedHost extends virtualFs.ScopedHost<any> {
if (formatted) {
const { cli, generators, defaultProject, ...workspaceJson } =
formatted;
delete cli.schematicCollections;
delete cli?.schematicCollections;
return merge(
this.writeWorkspaceConfigFiles(context, workspaceJson),
cli || generators || defaultProject
Expand All @@ -451,7 +451,7 @@ export class NxScopedHost extends virtualFs.ScopedHost<any> {
defaultProject,
...angularJson
} = w;
delete cli.schematicCollections;
delete cli?.schematicCollections;
return merge(
this.writeWorkspaceConfigFiles(context, angularJson),
cli || schematics
Expand All @@ -467,7 +467,7 @@ export class NxScopedHost extends virtualFs.ScopedHost<any> {
}
const { cli, schematics, generators, defaultProject, ...angularJson } =
config;
delete cli.schematicCollections;
delete cli?.schematicCollections;

return merge(
this.writeWorkspaceConfigFiles(context, angularJson),
Expand Down

1 comment on commit 986b053

@vercel
Copy link

@vercel vercel bot commented on 986b053 Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.