This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 convertDeepLinkConfigEntriesToString ,
66 getUpdatedAppNgModuleContentWithDeepLinkConfig ,
77 filterTypescriptFilesForDeepLinks ,
8+ hasExistingDeepLinkConfig ,
89 purgeDeepLinkDecorator
910} from './deep-linking/util' ;
1011import { Logger } from './logger/logger' ;
@@ -50,8 +51,10 @@ export function transformTsForDeepLinking(context: BuildContext) {
5051 tsFile . content = purgeDeepLinkDecorator ( tsFile . content ) ;
5152 } ) ;
5253 const tsFile = context . fileCache . get ( getStringPropertyValue ( Constants . ENV_APP_NG_MODULE_PATH ) ) ;
53- const deepLinkString = convertDeepLinkConfigEntriesToString ( getParsedDeepLinkConfig ( ) ) ;
54- tsFile . content = getUpdatedAppNgModuleContentWithDeepLinkConfig ( tsFile . path , tsFile . content , deepLinkString ) ;
54+ if ( ! hasExistingDeepLinkConfig ( tsFile . path , tsFile . content ) ) {
55+ const deepLinkString = convertDeepLinkConfigEntriesToString ( getParsedDeepLinkConfig ( ) ) ;
56+ tsFile . content = getUpdatedAppNgModuleContentWithDeepLinkConfig ( tsFile . path , tsFile . content , deepLinkString ) ;
57+ }
5558 }
5659 return Promise . resolve ( ) ;
5760}
You can’t perform that action at this time.
0 commit comments