You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { NgAddSaveDepedency } from './package-metadata';
|
|
interface PackageJson {
|
|
name: string;
|
|
version: string;
|
|
dependencies?: Record<string, string>;
|
|
devDependencies?: Record<string, string>;
|
|
peerDependencies?: Record<string, string>;
|
|
optionalDependencies?: Record<string, string>;
|
|
'ng-update'?: {
|
|
migrations?: string;
|
|
};
|
|
'ng-add'?: {
|
|
save?: NgAddSaveDepedency;
|
|
};
|
|
}
|
|
export interface PackageTreeNode {
|
|
name: string;
|
|
version: string;
|
|
path: string;
|
|
package: PackageJson | undefined;
|
|
}
|
|
export declare function readPackageJson(packageJsonPath: string): Promise<PackageJson | undefined>;
|
|
export declare function findPackageJson(workspaceDir: string, packageName: string): string | undefined;
|
|
export declare function getProjectDependencies(dir: string): Promise<Map<string, PackageTreeNode>>;
|
|
export {};
|