-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(misc): fix @nrwl/nx-plugin migrations
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
18 changes: 10 additions & 8 deletions
18
packages/nx-plugin/src/migrations/update-11-0-0/rename-ng-update-into-nx-migrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { Tree, readJson } from '@nrwl/devkit'; | ||
import { readJsonInTree } from '@nrwl/workspace'; | ||
|
||
export default function update(host: Tree) { | ||
const p = readJson(host, 'package.json'); | ||
if (p['ng-update']) { | ||
p['nx-migrations'] = p['ng-update']; | ||
delete p['ng-update']; | ||
} | ||
host.write('package.json', JSON.stringify(p, null, 2)); | ||
export default function () { | ||
return (host: any) => { | ||
const p = readJsonInTree(host, 'package.json'); | ||
if (p['ng-update']) { | ||
p['nx-migrations'] = p['ng-update']; | ||
delete p['ng-update']; | ||
} | ||
host.overwrite('package.json', JSON.stringify(p, null, 2)); | ||
}; | ||
} |
5 changes: 2 additions & 3 deletions
5
...plugin/src/migrations/update-11-0-0/update-schema-version-for-executors-and-generators.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters