Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(core): fix a typo in a migration
  • Loading branch information
vsavkin committed Mar 15, 2022
1 parent 94f575a commit 7b4ee52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@nrwl/nx-source",
"version": "13.9.0-beta.1",
"version": "13.9.0-beta.3",
"description": "Smart, Fast and Extensible Build System",
"homepage": "https://nx.dev",
"private": true,
Expand Down
Expand Up @@ -4,19 +4,19 @@ export function replaceTaoAndCLIWithNx(host: Tree) {
updateJson(host, 'package.json', (json: any) => {
if (json.dependencies['@nrwl/workspace']) {
json.dependencies['nx'] = json.dependencies['@nrwl/workspace'];
} else if (json.devDependencices['@nrwl/workspace']) {
json.dependencies['nx'] = json.devDependencices['@nrwl/workspace'];
} else if (json.devDependencies['@nrwl/workspace']) {
json.devDependencies['nx'] = json.devDependencies['@nrwl/workspace'];
}
removeTaoAndCLI(json.dependencies);
removeTaoAndCLI(json.devDependencices);
removeTaoAndCLI(json.devDependencies);
return json;
});
}

function removeTaoAndCLI(json: any) {
if (!json) return;
json['@nrwl/tao'] = undefined;
json['@nrwl/cli1'] = undefined;
json['@nrwl/cli'] = undefined;
}

export default replaceTaoAndCLIWithNx;

1 comment on commit 7b4ee52

@vercel
Copy link

@vercel vercel bot commented on 7b4ee52 Mar 15, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.