initial status
This commit is contained in:
12
node_modules/is-yarn-global/index.js
generated
vendored
Normal file
12
node_modules/is-yarn-global/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function () {
|
||||
const isWindows = process.platform === 'win32';
|
||||
const yarnPath = isWindows ? path.join('Yarn', 'config', 'global') : path.join('.config', 'yarn', 'global');
|
||||
if (__dirname.includes(yarnPath)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
Reference in New Issue
Block a user