mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: delete execa (#54107)
This commit is contained in:
+13
-10
@@ -1,12 +1,15 @@
|
||||
const pkg = require('cypress/package.json');
|
||||
const execa = require('execa');
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
const version = pkg.version;
|
||||
const child = spawn('pnpm', ['run', 'cypress:install'], {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
|
||||
(async () => {
|
||||
console.log('Installing Cypress ' + version);
|
||||
await execa('pnpm', ['run', 'cypress:install'], {
|
||||
env: { CYPRESS_INSTALL_BINARY: version }
|
||||
});
|
||||
console.log('Cypress installed');
|
||||
})();
|
||||
child.on('close', code => {
|
||||
if (code) {
|
||||
console.error('Cypress installation failed with code:', code);
|
||||
}
|
||||
});
|
||||
|
||||
child.on('error', error => {
|
||||
console.error('Cypress installation error:', error);
|
||||
});
|
||||
|
||||
@@ -134,7 +134,6 @@
|
||||
"eslint-plugin-react": "7.33.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-testing-library": "5.11.1",
|
||||
"execa": "5.1.1",
|
||||
"husky": "9.0.11",
|
||||
"jest": "29.7.0",
|
||||
"js-yaml": "3.14.1",
|
||||
|
||||
Generated
-3
@@ -114,9 +114,6 @@ importers:
|
||||
eslint-plugin-testing-library:
|
||||
specifier: 5.11.1
|
||||
version: 5.11.1(eslint@8.57.0)(typescript@5.2.2)
|
||||
execa:
|
||||
specifier: 5.1.1
|
||||
version: 5.1.1
|
||||
husky:
|
||||
specifier: 9.0.11
|
||||
version: 9.0.11
|
||||
|
||||
Reference in New Issue
Block a user