Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
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.io/license
|
---|
7 | */
|
---|
8 | import { NgAddSaveDepedency } from './package-metadata';
|
---|
9 | interface PackageJson {
|
---|
10 | name: string;
|
---|
11 | version: string;
|
---|
12 | dependencies?: Record<string, string>;
|
---|
13 | devDependencies?: Record<string, string>;
|
---|
14 | peerDependencies?: Record<string, string>;
|
---|
15 | optionalDependencies?: Record<string, string>;
|
---|
16 | 'ng-update'?: {
|
---|
17 | migrations?: string;
|
---|
18 | };
|
---|
19 | 'ng-add'?: {
|
---|
20 | save?: NgAddSaveDepedency;
|
---|
21 | };
|
---|
22 | }
|
---|
23 | export interface PackageTreeNode {
|
---|
24 | name: string;
|
---|
25 | version: string;
|
---|
26 | path: string;
|
---|
27 | package: PackageJson | undefined;
|
---|
28 | }
|
---|
29 | export declare function readPackageJson(packageJsonPath: string): Promise<PackageJson | undefined>;
|
---|
30 | export declare function findPackageJson(workspaceDir: string, packageName: string): string | undefined;
|
---|
31 | export declare function getProjectDependencies(dir: string): Promise<Map<string, PackageTreeNode>>;
|
---|
32 | export {};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.