chore(tools): control Cypress installation (#38660)
This commit is contained in:
committed by
GitHub
parent
f5eeda68d1
commit
33963cc854
12
cypress-install.js
Normal file
12
cypress-install.js
Normal file
@ -0,0 +1,12 @@
|
||||
const util = require('cypress/lib/util');
|
||||
const execa = require('execa');
|
||||
|
||||
const pkg = util.pkgVersion();
|
||||
|
||||
(async () => {
|
||||
console.log('Installing Cypress ' + pkg);
|
||||
await execa('npm', ['run', 'cypress:install'], {
|
||||
env: { CYPRESS_INSTALL_BINARY: pkg }
|
||||
});
|
||||
console.log('Cypress installed');
|
||||
})();
|
Reference in New Issue
Block a user