44import type * as lockfileTypes from '@pnpm/lockfile.types' ;
55import type * as pnpmTypes from '@pnpm/types' ;
66
7- import { Text } from '@rushstack/node-core-library' ;
8-
97import {
108 type ILfxGraphDependencyOptions ,
119 type ILfxGraphEntryOptions ,
@@ -398,9 +396,9 @@ function createPackageLockfileEntry(options: {
398396
399397 // Rewrite to:
400398 // "@rushstack/m@1.0.0; @rushstack/n@2.0.0"
401- suffix = Text . replaceAll ( suffix , ')(' , '; ' ) ;
402- suffix = Text . replaceAll ( suffix , '(' , '' ) ;
403- suffix = Text . replaceAll ( suffix , ')' , '' ) ;
399+ suffix = suffix . replaceAll ( ')(' , '; ' ) ;
400+ suffix = suffix . replaceAll ( '(' , '' ) ;
401+ suffix = suffix . replaceAll ( ')' , '' ) ;
404402 result . entrySuffix = suffix ;
405403
406404 // @rushstack /l@1.0.0(@rushstack/m@1.0.0)(@rushstack/n@2.0.0)
@@ -412,10 +410,10 @@ function createPackageLockfileEntry(options: {
412410 // --> @rushstack+l@1.0.0_@rushstack+m@1.0.0_@rushstack+n@2.0.0
413411
414412 // @rushstack /l 1.0.0 (@rushstack/m@1.0.0)(@rushstack/n@2.0.0)
415- dotPnpmSubfolder = Text . replaceAll ( slashlessRawEntryId , '/' , '+' ) ;
416- dotPnpmSubfolder = Text . replaceAll ( dotPnpmSubfolder , ')(' , '_' ) ;
417- dotPnpmSubfolder = Text . replaceAll ( dotPnpmSubfolder , '(' , '_' ) ;
418- dotPnpmSubfolder = Text . replaceAll ( dotPnpmSubfolder , ')' , '' ) ;
413+ dotPnpmSubfolder = slashlessRawEntryId . replaceAll ( '/' , '+' ) ;
414+ dotPnpmSubfolder = dotPnpmSubfolder . replaceAll ( ')(' , '_' ) ;
415+ dotPnpmSubfolder = dotPnpmSubfolder . replaceAll ( '(' , '_' ) ;
416+ dotPnpmSubfolder = dotPnpmSubfolder . replaceAll ( ')' , '' ) ;
419417 }
420418
421419 // Example:
0 commit comments