Skip to content

Commit 73b9765

Browse files
committed
prefer yarn
1 parent 3e69a83 commit 73b9765

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib_dev/process.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const signals = {
2121
SIGTERM: 15,
2222
};
2323

24-
export const { exec, node, npx, mocha, bsc, rescript, execBuild, execClean } =
24+
export const { exec, node, yarn, mocha, bsc, rescript, execBuild, execClean } =
2525
setup();
2626

2727
/**
@@ -94,14 +94,14 @@ export function setup(cwd = process.cwd()) {
9494
},
9595

9696
/**
97-
* `npx` CLI
97+
* `yarn` CLI
9898
*
9999
* @param {string[]} [args]
100100
* @param {ExecOptions} [options]
101101
* @return {Promise<ExecResult>}
102102
*/
103-
npx(args = [], options = {}) {
104-
return exec("npx", args, options);
103+
yarn(args = [], options = {}) {
104+
return exec("yarn", args, options);
105105
},
106106

107107
/**
@@ -112,6 +112,8 @@ export function setup(cwd = process.cwd()) {
112112
* @return {Promise<ExecResult>}
113113
*/
114114
mocha(args = [], options = {}) {
115+
// `yarn mocha` works, but format output differently
116+
// No more efforts here since we're plannig to drop Mocha
115117
return exec("npx", ["mocha", ...args], options);
116118
},
117119

0 commit comments

Comments
 (0)