You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let cmd_path = bin_dir.join(format!("{tool}.cmd"));
235
235
236
-
// Create .cmd wrapper that calls vp env run <tool>
236
+
// Create .cmd wrapper that calls vp env exec <tool>
237
237
// Use a for loop to canonicalize VITE_PLUS_HOME path.
238
238
// %~dp0.. would produce paths like C:\Users\x\.vite-plus\bin\..
239
239
// The for loop resolves this to a clean C:\Users\x\.vite-plus
240
240
let cmd_content = format!(
241
-
"@echo off\r\nfor %%I in (\"%~dp0..\") do set VITE_PLUS_HOME=%%~fI\r\n\"%VITE_PLUS_HOME%\\current\\bin\\vp.exe\" env run {} %*\r\nexit /b %ERRORLEVEL%\r\n",
241
+
"@echo off\r\nfor %%I in (\"%~dp0..\") do set VITE_PLUS_HOME=%%~fI\r\n\"%VITE_PLUS_HOME%\\current\\bin\\vp.exe\" env exec {} %*\r\nexit /b %ERRORLEVEL%\r\n",
242
242
tool
243
243
);
244
244
245
245
tokio::fs::write(&cmd_path, cmd_content).await?;
246
246
247
247
// Also create shell script for Git Bash (tool without extension)
248
-
// Uses explicit "vp env run <tool>" instead of symlink+argv[0] because
248
+
// Uses explicit "vp env exec <tool>" instead of symlink+argv[0] because
0 commit comments