@@ -21,7 +21,7 @@ const signals = {
21
21
SIGTERM : 15 ,
22
22
} ;
23
23
24
- export const { exec, node, npx , mocha, bsc, rescript, execBuild, execClean } =
24
+ export const { exec, node, yarn , mocha, bsc, rescript, execBuild, execClean } =
25
25
setup ( ) ;
26
26
27
27
/**
@@ -94,14 +94,14 @@ export function setup(cwd = process.cwd()) {
94
94
} ,
95
95
96
96
/**
97
- * `npx ` CLI
97
+ * `yarn ` CLI
98
98
*
99
99
* @param {string[] } [args]
100
100
* @param {ExecOptions } [options]
101
101
* @return {Promise<ExecResult> }
102
102
*/
103
- npx ( args = [ ] , options = { } ) {
104
- return exec ( "npx " , args , options ) ;
103
+ yarn ( args = [ ] , options = { } ) {
104
+ return exec ( "yarn " , args , options ) ;
105
105
} ,
106
106
107
107
/**
@@ -112,6 +112,8 @@ export function setup(cwd = process.cwd()) {
112
112
* @return {Promise<ExecResult> }
113
113
*/
114
114
mocha ( args = [ ] , options = { } ) {
115
+ // `yarn mocha` works, but format output differently
116
+ // No more efforts here since we're plannig to drop Mocha
115
117
return exec ( "npx" , [ "mocha" , ...args ] , options ) ;
116
118
} ,
117
119
0 commit comments