@@ -5,7 +5,6 @@ var __migrations = [
5
5
inlineSourceMapMigration ,
6
6
addDomLibs ,
7
7
addIterableToAngularProjects ,
8
- addTnsCoreModulesPathMappings ,
9
8
] ;
10
9
11
10
function migrateProject ( tsConfig , tsconfigPath , projectDir ) {
@@ -81,23 +80,6 @@ function addTsLib(existingConfig, libName) {
81
80
}
82
81
}
83
82
84
- function addTnsCoreModulesPathMappings ( existingConfig , displayableTsconfigPath , projectDir ) {
85
- console . log ( "Adding tns-core-modules path mappings lib to tsconfig.json..." ) ;
86
- existingConfig [ "compilerOptions" ] = existingConfig [ "compilerOptions" ] || { } ;
87
- var compilerOptions = existingConfig [ "compilerOptions" ] ;
88
- compilerOptions [ "baseUrl" ] = "." ;
89
- compilerOptions [ "paths" ] = compilerOptions [ "paths" ] || { } ;
90
-
91
- const appPath = getAppPath ( projectDir ) ;
92
- compilerOptions [ "paths" ] [ "~/*" ] = compilerOptions [ "paths" ] [ "~/*" ] || [
93
- `${ appPath } /*`
94
- ] ;
95
- compilerOptions [ "paths" ] [ "*" ] = compilerOptions [ "paths" ] [ "*" ] || [
96
- "./node_modules/tns-core-modules/*" ,
97
- "./node_modules/*"
98
- ] ;
99
- }
100
-
101
83
function getAppPath ( projectDir ) {
102
84
const DEFAULT_PATH = "app" ;
103
85
const nsConfigPath = path . join ( projectDir , "nsconfig.json" ) ;
0 commit comments