nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
365 stars 52 forks source link

Updating workspace config file during post install rather than ng-add / init generator causes error in nx workspace v13 #283

Closed AgentEnder closed 2 years ago

AgentEnder commented 2 years ago

https://github.com/nstudio/xplat/blob/530a23e6c79fda13cf5ec9a156caeb6222ae0c22/packages/xplat/src/utils/postinstall.ts#L39

In v13 we moved the cli options into nx.json from workspace.json. For read / write through an angular devkit tree, this is not a breaking change. However, since the post install script is making the change here, without a tree, we can't patch it. Recommend adding into the ng-add script.

NathanWalker commented 2 years ago

fixed in v13