File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export class AddCommand extends SchematicCommand<AddCommandSchema> {
64
64
packageMetadata = await fetchPackageMetadata (
65
65
packageIdentifier . name ,
66
66
this . logger ,
67
- { usingYarn } ,
67
+ { registry : options . registry , usingYarn } ,
68
68
) ;
69
69
} catch ( e ) {
70
70
this . logger . error ( 'Unable to fetch package metadata: ' + e . message ) ;
@@ -114,7 +114,7 @@ export class AddCommand extends SchematicCommand<AddCommandSchema> {
114
114
const manifest = await fetchPackageManifest (
115
115
packageIdentifier ,
116
116
this . logger ,
117
- { usingYarn } ,
117
+ { registry : options . registry , usingYarn } ,
118
118
) ;
119
119
120
120
collectionName = manifest . name ;
Original file line number Diff line number Diff line change 18
18
"$source" : " argv" ,
19
19
"index" : 0
20
20
}
21
+ },
22
+ "registry" : {
23
+ "description" : " The NPM registry to use." ,
24
+ "type" : " string" ,
25
+ "oneOf" : [
26
+ {
27
+ "format" : " uri"
28
+ },
29
+ {
30
+ "format" : " hostname"
31
+ }
32
+ ]
21
33
}
22
34
},
23
35
"required" : [
You can’t perform that action at this time.
0 commit comments