xplat icon indicating copy to clipboard operation
xplat copied to clipboard

Update guide to new releases with nx cli

Open sebastiandg7 opened this issue 5 years ago • 4 comments

Is there any update guide for new releases when using the nx cli?

I'm currently running version 8.0.14 and want to update to 8.1.1.

Note: My nx workspace is not using the angular cli, it uses the nx cli. Running

$ nx migrate @nstudio/xplat

fails.

Here is the output of

$ nx migrate @nstudio/xplat
>  NX  Report complete - copy this into the issue template

  @nrwl/angular : 8.11.1
  @nrwl/cli : 8.11.1
  @nrwl/cypress : 8.11.1
  @nrwl/eslint-plugin-nx : 8.11.1
  @nrwl/express : Not Found
  @nrwl/jest : 8.11.1
  @nrwl/linter : 8.8.3
  @nrwl/nest : 8.11.1
  @nrwl/next : Not Found
  @nrwl/node : 8.11.1
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 8.11.1
  @nrwl/web : 8.8.3
  @nrwl/workspace : 8.11.1
  typescript : 3.5.3

sebastiandg7 avatar Jan 15 '20 23:01 sebastiandg7

We'll check about adding Nx's migrate support alongside the ng update support 👍

NathanWalker avatar Jan 20 '20 04:01 NathanWalker

How do we migrate in the meantime? Simply doing it manually through package.json files, or should we update it using any other method?

asciidiego avatar May 18 '20 17:05 asciidiego

@diegovincent after updating Nx using this guide should get you most of they way https://nx.dev/angular/workspace/update - that’s how we update our workspaces - from there it depends on which apps you may have in the workspace (we often update electron and nativescript manually however ionic should do well with an Nx migration).

NathanWalker avatar May 19 '20 00:05 NathanWalker

@NathanWalker Thanks for the quick response. Quick question, to update Cypress to v4.x.x in the v8 workspace, can I manually update it in the npm, or is it a bad practice to touch dependencies manually in the package.json?

asciidiego avatar May 19 '20 09:05 asciidiego