* chore(react): update emotion to new versions and new package names on react plugin * chore(nextjs): update emotion to latest version and the new package names * feat(misc): have react and next plugin migrations update emotion imports * add renamePackageImports and renameNpmPackage rules to workspace utils * update migrations to update emotion imports to the new name and version
14 lines
365 B
TypeScript
14 lines
365 B
TypeScript
import { chain, Rule } from '@angular-devkit/schematics';
|
|
import { formatFiles, updatePackagesInPackageJson } from '@nrwl/workspace';
|
|
import * as path from 'path';
|
|
|
|
export default function update(): Rule {
|
|
return chain([
|
|
updatePackagesInPackageJson(
|
|
path.join(__dirname, '../../../', 'migrations.json'),
|
|
'11.0.0'
|
|
),
|
|
formatFiles(),
|
|
]);
|
|
}
|