File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/dev/buildTools/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,8 @@ function GetPackageDeclaration(
366
366
}
367
367
}
368
368
369
- // if the import is a return-type import from core, we remove the import and the dot
370
- if ( line . match ( / i m p o r t \( " c o r e ( .* ) " \) \. / g) ) {
369
+ // if the import is a return-type import from core or local dir , we remove the import and the dot
370
+ if ( line . match ( / i m p o r t \( " c o r e ( .* ) " \) \. / g) || line . match ( / i m p o r t \( " \. ( . * ) " \) \. / g ) ) {
371
371
line = line . replace ( / i m p o r t \( " ( .* ) " \) \. / g, "" ) ;
372
372
}
373
373
@@ -414,10 +414,7 @@ function GetPackageDeclaration(
414
414
}
415
415
const devPackageToUse = isValidDevPackageName ( localDevPackageMap , true ) ? localDevPackageMap : devPackageName ;
416
416
const originalNamespace = getPublicPackageName ( getPackageMappingByDevName ( devPackageToUse ) . namespace ) ;
417
- const namespace = getPublicPackageName ( getPackageMappingByDevName ( devPackageToUse ) . namespace , fullPath /*, fullPath*/ ) ;
418
- if ( fullPath . indexOf ( "nodeParticleBuildState" ) !== - 1 ) {
419
- console . log ( `Replacing ${ alias } with ${ namespace } .${ realClassName } in ${ fullPath } for package ${ devPackageToUse } (${ originalNamespace } )` ) ;
420
- }
417
+ const namespace = getPublicPackageName ( getPackageMappingByDevName ( devPackageToUse ) . namespace , fullPath ) ;
421
418
if ( namespace !== defaultModuleName || originalNamespace !== namespace || alias !== realClassName ) {
422
419
const matchRegex = new RegExp ( `([ <])(${ alias } )([^\\w])` , "g" ) ;
423
420
if ( exported ) {
You can’t perform that action at this time.
0 commit comments