File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {fileURLToPath} from 'node:url';
55import { promisify } from 'node:util' ;
66import childProcess from 'node:child_process' ;
77import fs , { constants as fsConstants } from 'node:fs/promises' ;
8- import { isWsl , powerShellPath } from 'wsl-utils' ;
8+ import { isWsl , powerShellPath , convertWslPathToWindows } from 'wsl-utils' ;
99import defineLazyProperty from 'define-lazy-prop' ;
1010import defaultBrowser from 'default-browser' ;
1111import isInsideContainer from 'is-inside-container' ;
@@ -187,6 +187,11 @@ const baseOpen = async options => {
187187 childProcessOptions . windowsVerbatimArguments = true ;
188188 }
189189
190+ // Convert WSL Linux paths to Windows paths
191+ if ( isWsl && options . target ) {
192+ options . target = await convertWslPathToWindows ( options . target ) ;
193+ }
194+
190195 const encodedArguments = [ 'Start' ] ;
191196
192197 if ( options . wait ) {
Original file line number Diff line number Diff line change 5757 "default-browser" : " ^5.2.1" ,
5858 "define-lazy-prop" : " ^3.0.0" ,
5959 "is-inside-container" : " ^1.0.0" ,
60- "wsl-utils" : " ^0.1 .0"
60+ "wsl-utils" : " ^0.2 .0"
6161 },
6262 "devDependencies" : {
6363 "@types/node" : " ^20.10.5" ,
You can’t perform that action at this time.
0 commit comments