File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ export async function getRewatchBscArgs(
127127 const bscExe = await utils . findBscExeBinary (
128128 entry . project . workspaceRootPath ,
129129 ) ;
130- const env = { } ;
130+ const env : NodeJS . ProcessEnv = { } ;
131131 if ( bscExe != null ) {
132- ( env as any ) [ "RESCRIPT_BSC_EXE" ] = bscExe ;
132+ env [ "RESCRIPT_BSC_EXE" ] = bscExe ;
133133 }
134134
135135 // For ReScript >= 12.0.0-beta.11 we need to set RESCRIPT_RUNTIME
@@ -141,7 +141,7 @@ export async function getRewatchBscArgs(
141141 let rescriptRuntime : string | null = await getRuntimePath ( entry ) ;
142142
143143 if ( rescriptRuntime !== null ) {
144- ( env as any ) [ "RESCRIPT_RUNTIME" ] = rescriptRuntime ;
144+ env [ "RESCRIPT_RUNTIME" ] = rescriptRuntime ;
145145 } else {
146146 // If no runtime was found, we should let the user know.
147147 let params : p . ShowMessageParams = {
You can’t perform that action at this time.
0 commit comments