package-config.d.ts 615 B

123456789101112
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import { Tree } from '@angular-devkit/schematics';
  9. /** Adds a package to the package.json in the given host tree. */
  10. export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree;
  11. /** Gets the version of the specified package by looking at the package.json in the given tree. */
  12. export declare function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null;