@@ -19,7 +19,6 @@ import {
19
19
url ,
20
20
} from '@angular-devkit/schematics' ;
21
21
import { JSONFile } from '../utility/json-file' ;
22
- import { latestVersions } from '../utility/latest-versions' ;
23
22
import { relativePathToWorkspaceRoot } from '../utility/paths' ;
24
23
import { buildDefaultPath , getWorkspace } from '../utility/workspace' ;
25
24
import { ProjectType } from '../utility/workspace-models' ;
@@ -34,7 +33,7 @@ function updateTsConfig(packageName: string, ...paths: string[]) {
34
33
const file = new JSONFile ( host , 'tsconfig.json' ) ;
35
34
const jsonPath = [ 'compilerOptions' , 'paths' , packageName ] ;
36
35
const value = file . get ( jsonPath ) ;
37
- file . modify ( jsonPath , Array . isArray ( value ) ? [ ...value , ...paths ] : paths ) ;
36
+ file . modify ( jsonPath , Array . isArray ( value ) ? [ ...paths , ...value ] : paths ) ;
38
37
} ;
39
38
}
40
39
@@ -50,7 +49,7 @@ export default function (options: LibraryOptions): Rule {
50
49
51
50
if ( project ?. extensions . projectType !== ProjectType . Library ) {
52
51
throw new SchematicsException (
53
- `Secondary Entrypoint schematic requires a project type of "library".` ,
52
+ `Library entrypoint schematic requires a project type of "library".` ,
54
53
) ;
55
54
}
56
55
@@ -81,8 +80,6 @@ export default function (options: LibraryOptions): Rule {
81
80
secondaryEntryPoint,
82
81
relativePathToWorkspaceRoot : relativePathToWorkspaceRoot ( libDir ) ,
83
82
packageName : options . name ,
84
- angularLatestVersion : latestVersions . Angular . replace ( / ~ | \^ / , '' ) ,
85
- tsLibLatestVersion : latestVersions [ 'tslib' ] . replace ( / ~ | \^ / , '' ) ,
86
83
} ) ,
87
84
move ( libDir ) ,
88
85
] ) ;
0 commit comments