thedesk/app/node_modules/is-installed-globally/index.js

6 lines
226 B
JavaScript
Raw Permalink Normal View History

2019-09-13 00:38:13 +10:00
'use strict';
const globalDirs = require('global-dirs');
const isPathInside = require('is-path-inside');
module.exports = isPathInside(__dirname, globalDirs.yarn.packages) || isPathInside(__dirname, globalDirs.npm.packages);