File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import type {Reporter} from '../../reporters/index.js';
4
4
import type { Manifest } from '../../types.js' ;
5
5
import type Config from '../../config.js' ;
6
6
import { MessageError } from '../../errors.js' ;
7
- import { OSX_GLOBAL_PREFIX_DIRECTORY } from '../../constants.js' ;
8
7
import { registries } from '../../registries/index.js' ;
9
8
import NoopReporter from '../../reporters/base-reporter.js' ;
10
9
import buildSubCommands from './_build-sub-commands.js' ;
@@ -77,8 +76,6 @@ function getGlobalPrefix(config: Config, flags: Object): string {
77
76
return String ( config . getOption ( 'prefix' ) ) ;
78
77
} else if ( process . env . PREFIX ) {
79
78
return process . env . PREFIX ;
80
- } else if ( process . platform === 'darwin' ) {
81
- return OSX_GLOBAL_PREFIX_DIRECTORY ;
82
79
} else if ( process . platform === 'win32' ) {
83
80
if ( process . env . LOCALAPPDATA ) {
84
81
return path . join ( process . env . LOCALAPPDATA , 'Yarn' , 'bin' ) ;
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ export const MODULE_CACHE_DIRECTORY = getCacheDirectory();
58
58
export const CONFIG_DIRECTORY = getDirectory ( 'config' ) ;
59
59
export const LINK_REGISTRY_DIRECTORY = path . join ( CONFIG_DIRECTORY , 'link' ) ;
60
60
export const GLOBAL_MODULE_DIRECTORY = path . join ( CONFIG_DIRECTORY , 'global' ) ;
61
- export const OSX_GLOBAL_PREFIX_DIRECTORY = '/usr/local' ;
62
61
63
62
export const META_FOLDER = '.yarn-meta' ;
64
63
export const INTEGRITY_FILENAME = '.yarn-integrity' ;
You can’t perform that action at this time.
0 commit comments