@@ -169,9 +169,8 @@ export function setup(cwd = process.cwd()) {
169169 * @param {ExecOptions } [options]
170170 * @return {Promise<ExecResult> }
171171 */
172- async bsc ( args = [ ] , options = { } ) {
173- const realPath = await fs . realpath ( bsc_exe ) ;
174- return exec ( realPath , args , options ) ;
172+ bsc ( args = [ ] , options = { } ) {
173+ return exec ( bsc_exe , args , options ) ;
175174 } ,
176175
177176 /**
@@ -181,9 +180,8 @@ export function setup(cwd = process.cwd()) {
181180 * @param {ExecOptions } [options]
182181 * @return {Promise<ExecResult> }
183182 */
184- async execBuild ( args = [ ] , options = { } ) {
185- const realPath = await fs . realpath ( rescript_exe ) ;
186- return exec ( realPath , [ "build" , ...args ] , options ) ;
183+ execBuild ( args = [ ] , options = { } ) {
184+ return exec ( rescript_exe , [ "build" , ...args ] , options ) ;
187185 } ,
188186
189187 /**
@@ -193,9 +191,8 @@ export function setup(cwd = process.cwd()) {
193191 * @param {ExecOptions } [options]
194192 * @return {Promise<ExecResult> }
195193 */
196- async execClean ( args = [ ] , options = { } ) {
197- const realPath = await fs . realpath ( rescript_exe ) ;
198- return exec ( realPath , [ "clean" , ...args ] , options ) ;
194+ execClean ( args = [ ] , options = { } ) {
195+ return exec ( rescript_exe , [ "clean" , ...args ] , options ) ;
199196 } ,
200197
201198 /**
0 commit comments