index.js 309 B

123456789101112
  1. 'use strict';
  2. const path = require('path');
  3. module.exports = function () {
  4. const isWindows = process.platform === 'win32';
  5. const yarnPath = isWindows ? path.join('Yarn', 'config', 'global') : path.join('.config', 'yarn', 'global');
  6. if (__dirname.includes(yarnPath)) {
  7. return true;
  8. }
  9. return false;
  10. };