()
| 1937 | const REQUIRED_PACKAGE_KEYS = exports.REQUIRED_PACKAGE_KEYS = ['name', 'version', '_uid']; |
| 1938 | |
| 1939 | function getPreferredCacheDirectories() { |
| 1940 | const preferredCacheDirectories = [getCacheDir()]; |
| 1941 | |
| 1942 | if (process.getuid) { |
| 1943 | // $FlowFixMe: process.getuid exists, dammit |
| 1944 | preferredCacheDirectories.push(path.join(os.tmpdir(), `.yarn-cache-${process.getuid()}`)); |
| 1945 | } |
| 1946 | |
| 1947 | preferredCacheDirectories.push(path.join(os.tmpdir(), `.yarn-cache`)); |
| 1948 | |
| 1949 | return preferredCacheDirectories; |
| 1950 | } |
| 1951 | |
| 1952 | const PREFERRED_MODULE_CACHE_DIRECTORIES = exports.PREFERRED_MODULE_CACHE_DIRECTORIES = getPreferredCacheDirectories(); |
| 1953 | const CONFIG_DIRECTORY = exports.CONFIG_DIRECTORY = getConfigDir(); |
no test coverage detected