Skip to content

Commit

Permalink
fix(core): migrate should not fail if dependencies section doesn't ex…
Browse files Browse the repository at this point in the history
…ist (#10202)
  • Loading branch information
zy2ba committed May 9, 2022
1 parent 23f6d54 commit fdd7479
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -7,9 +7,9 @@ import {

export function replaceTaoWithNx(host: Tree) {
updateJson(host, 'package.json', (json: any) => {
if (json.dependencies['@nrwl/workspace']) {
if (json.dependencies?.['@nrwl/workspace']) {
json.dependencies['nx'] = json.dependencies['@nrwl/workspace'];
} else if (json.devDependencies['@nrwl/workspace']) {
} else if (json.devDependencies?.['@nrwl/workspace']) {
json.devDependencies['nx'] = json.devDependencies['@nrwl/workspace'];
}
removeTao(json.dependencies);
Expand Down

1 comment on commit fdd7479

@vercel
Copy link

@vercel vercel bot commented on fdd7479 May 9, 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-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.