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(
127
127
const bscExe = await utils . findBscExeBinary (
128
128
entry . project . workspaceRootPath ,
129
129
) ;
130
- const env = { } ;
130
+ const env : NodeJS . ProcessEnv = { } ;
131
131
if ( bscExe != null ) {
132
- ( env as any ) [ "RESCRIPT_BSC_EXE" ] = bscExe ;
132
+ env [ "RESCRIPT_BSC_EXE" ] = bscExe ;
133
133
}
134
134
135
135
// For ReScript >= 12.0.0-beta.11 we need to set RESCRIPT_RUNTIME
@@ -141,7 +141,7 @@ export async function getRewatchBscArgs(
141
141
let rescriptRuntime : string | null = await getRuntimePath ( entry ) ;
142
142
143
143
if ( rescriptRuntime !== null ) {
144
- ( env as any ) [ "RESCRIPT_RUNTIME" ] = rescriptRuntime ;
144
+ env [ "RESCRIPT_RUNTIME" ] = rescriptRuntime ;
145
145
} else {
146
146
// If no runtime was found, we should let the user know.
147
147
let params : p . ShowMessageParams = {
You can’t perform that action at this time.
0 commit comments