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:
900 bytes
|
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 { Tree } from '@angular-devkit/schematics';
|
---|
9 | export declare enum NodeDependencyType {
|
---|
10 | Default = "dependencies",
|
---|
11 | Dev = "devDependencies",
|
---|
12 | Peer = "peerDependencies",
|
---|
13 | Optional = "optionalDependencies"
|
---|
14 | }
|
---|
15 | export interface NodeDependency {
|
---|
16 | type: NodeDependencyType;
|
---|
17 | name: string;
|
---|
18 | version: string;
|
---|
19 | overwrite?: boolean;
|
---|
20 | }
|
---|
21 | export declare function addPackageJsonDependency(tree: Tree, dependency: NodeDependency, pkgJsonPath?: string): void;
|
---|
22 | export declare function removePackageJsonDependency(tree: Tree, name: string, pkgJsonPath?: string): void;
|
---|
23 | export declare function getPackageJsonDependency(tree: Tree, name: string, pkgJsonPath?: string): NodeDependency | null;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.