@@ -169,9 +169,8 @@ export function setup(cwd = process.cwd()) {
169
169
* @param {ExecOptions } [options]
170
170
* @return {Promise<ExecResult> }
171
171
*/
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 ) ;
175
174
} ,
176
175
177
176
/**
@@ -181,9 +180,8 @@ export function setup(cwd = process.cwd()) {
181
180
* @param {ExecOptions } [options]
182
181
* @return {Promise<ExecResult> }
183
182
*/
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 ) ;
187
185
} ,
188
186
189
187
/**
@@ -193,9 +191,8 @@ export function setup(cwd = process.cwd()) {
193
191
* @param {ExecOptions } [options]
194
192
* @return {Promise<ExecResult> }
195
193
*/
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 ) ;
199
196
} ,
200
197
201
198
/**
0 commit comments