refactor(Cypress): Moved Cypress to the main folder of the project, as I don't need a sub project for now.
This commit is contained in:
15
node_modules/is-installed-globally/index.js
generated
vendored
Normal file
15
node_modules/is-installed-globally/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
const fs = require('fs');
|
||||
const globalDirs = require('global-dirs');
|
||||
const isPathInside = require('is-path-inside');
|
||||
|
||||
module.exports = (() => {
|
||||
try {
|
||||
return (
|
||||
isPathInside(__dirname, globalDirs.yarn.packages) ||
|
||||
isPathInside(__dirname, fs.realpathSync(globalDirs.npm.packages))
|
||||
);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user