This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree 2 files changed +5
-5
lines changed
packages/schematics/angular/pipe
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
- import { addDeclarationToModule , addExportToModule } from '../utility/ast-utils' ;
8
+ import { addDeclarationToModule , addExportToModule } from '../utility/ast-utils' ;
9
9
import { InsertChange } from '../utility/change' ;
10
10
11
11
import {
@@ -20,7 +20,7 @@ import {
20
20
noop ,
21
21
normalizePath ,
22
22
template ,
23
- url ,
23
+ url
24
24
} from '@angular-devkit/schematics' ;
25
25
import * as stringUtils from '../strings' ;
26
26
@@ -30,7 +30,7 @@ import 'rxjs/add/operator/merge';
30
30
31
31
function addDeclarationToNgModule ( options : any ) : Rule {
32
32
return ( host : Tree ) => {
33
- if ( options [ 'skip-import' ] ) {
33
+ if ( options . skipImport ) {
34
34
return host ;
35
35
}
36
36
@@ -55,7 +55,7 @@ function addDeclarationToNgModule(options: any): Rule {
55
55
}
56
56
57
57
if ( ! modulePath ) {
58
- throw new Error ( 'Could not find an NgModule for the new pipe. Use the skip-import '
58
+ throw new Error ( 'Could not find an NgModule for the new pipe. Use the skipImport '
59
59
+ 'option to skip importing pipes in NgModule.' ) ;
60
60
}
61
61
Original file line number Diff line number Diff line change 25
25
"default" : true ,
26
26
"description" : " Specifies if a spec file is generated."
27
27
},
28
- "skip-import " : {
28
+ "skipImport " : {
29
29
"type" : " boolean" ,
30
30
"default" : false ,
31
31
"description" : " Allows for skipping the module import."
You can’t perform that action at this time.
0 commit comments