File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { logger } from '@socketsecurity/registry/lib/logger'
22
3- import constants from '../constants.mts'
3+ import { YARN } from '../constants.mts'
44import { findBinPathDetailsSync } from './path-resolve.mts'
55
66function exitWithBinPathError ( binName : string ) : never {
@@ -20,7 +20,7 @@ export function getYarnBinPath(): string {
2020 if ( _yarnBinPath === undefined ) {
2121 _yarnBinPath = getYarnBinPathDetails ( ) . path
2222 if ( ! _yarnBinPath ) {
23- exitWithBinPathError ( constants . YARN )
23+ exitWithBinPathError ( YARN )
2424 }
2525 }
2626 return _yarnBinPath
@@ -31,7 +31,7 @@ export function getYarnBinPathDetails(): ReturnType<
3131 typeof findBinPathDetailsSync
3232> {
3333 if ( _yarnBinPathDetails === undefined ) {
34- _yarnBinPathDetails = findBinPathDetailsSync ( constants . YARN )
34+ _yarnBinPathDetails = findBinPathDetailsSync ( YARN )
3535 }
3636 return _yarnBinPathDetails
3737}
You can’t perform that action at this time.
0 commit comments