mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-27 10:19:26 -05:00
cl: change logic to always download unless told via CYPRESS_DOWNLOAD env var
This commit is contained in:
+5
-4
@@ -3,10 +3,11 @@ const minimist = require('minimist')
|
||||
const args = minimist(process.argv.slice(2))
|
||||
|
||||
function installingFromNpmAsAUser () {
|
||||
// when installing this CLI package from
|
||||
// another project, the cwd will not match
|
||||
// __dirname
|
||||
return process.cwd() !== __dirname
|
||||
// when installing from monorepo we explicitly
|
||||
// opt out of downloading. if we aren't running
|
||||
// from the root monorepo, then go ahead and
|
||||
// download and install cypress binary
|
||||
return process.env.CYPRESS_DOWNLOAD !== "0"
|
||||
}
|
||||
|
||||
switch (args.exec) {
|
||||
|
||||
Reference in New Issue
Block a user