UNPKG

509 BTypeScriptView Raw
1import { Rule, Tree, SchematicContext } from '@angular-devkit/schematics';
2export interface PackageRenameMapping {
3 [packageName: string]: string | [newPackageName: string, version: string];
4}
5/**
6 * Updates all the imports in the workspace, and adjust the package.json appropriately.
7 *
8 * @param packageNameMapping The packageNameMapping provided to the schematic
9 */
10export declare function renameNpmPackages(packageRenameMapping: PackageRenameMapping): (tree: Tree, context: SchematicContext) => Rule;