frontend/.pnpm-store/v3/files/6e/38d9e7fa0a0662352639fda72b09239f4cb128fcb6b02d23dfbc3e608ccc025c1b740603427b73c7542ea3f28bebd1f3934cfe87e366440d5e7fef22e14cd2

12 lines
423 B
Plaintext

import path from 'node:path';
import { fileURLToPath } from 'node:url';
const isYarnGlobal = () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const isWindows = process.platform === 'win32';
const yarnPath = isWindows
? path.join('Yarn', 'config', 'global')
: path.join('.config', 'yarn', 'global');
return __dirname.includes(yarnPath);
};
export default isYarnGlobal;