mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
chore: replace superspawn & child_process with execa (#862)
* chore: added execa dependency Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in android_sdk Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in build * chore: execa - drop superspawn in check_reqs Plus: Remove useless trimming of execa output Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in emulator Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in device Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in run_java_unit_tests * chore: execa - drop superspawn in ProjectBuilder Co-authored-by: Raphael von der Grün <raphinesse@gmail.com> * chore: execa - drop superspawn in adb * chore: execa - drop superspawn in plugin.spec * chore: execa - replace child_process in log * chore: execa - replace child_process in check_reqs * chore: execa - replace child_process in emulator Co-authored-by: エリス <erisu@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e3cc75caff
commit
fd57909730
@@ -21,7 +21,7 @@
|
||||
|
||||
var Q = require('q');
|
||||
var path = require('path');
|
||||
var superspawn = require('cordova-common').superspawn;
|
||||
var execa = require('execa');
|
||||
var ProjectBuilder = require('../bin/templates/cordova/lib/builders/ProjectBuilder');
|
||||
|
||||
Q.resolve()
|
||||
@@ -42,7 +42,7 @@ process.on('unhandledRejection', err => {
|
||||
|
||||
function gradlew () {
|
||||
const wrapperPath = path.join(__dirname, 'gradlew');
|
||||
return superspawn.spawn(wrapperPath, Array.from(arguments), {
|
||||
return execa(wrapperPath, Array.from(arguments), {
|
||||
stdio: 'inherit',
|
||||
cwd: __dirname
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user