您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
309B

  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. };