File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tests/contracts/producer/__tests__/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,19 @@ function findPackageInNodeModules(root: string, packageName: string) {
4747
4848 const packageSegments = packageName . split ( '/' ) ;
4949
50- let blah = modulesDir ;
50+ let current = modulesDir ;
5151
5252 while ( packageSegments . length > 0 ) {
53- const current = packageSegments . shift ( ) as string ;
53+ const currentSegment = packageSegments . shift ( ) as string ;
5454
55- blah = path . join ( blah , current ) ;
55+ current = path . join ( current , currentSegment ) ;
5656
57- if ( ! fs . existsSync ( blah ) ) {
57+ if ( ! fs . existsSync ( current ) ) {
5858 return null ;
5959 }
6060 }
6161
62- return blah ;
62+ return current ;
6363}
6464
6565function getPackageInstallDirectory ( packageName : string ) : string {
You can’t perform that action at this time.
0 commit comments