File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11## NEXT
22
33- [ Fixed] Fixed an issue where Add data and Read data would generate operations in the wrong folder
4+ - [ Fixed] Fixed an issue where firebase version check produced false positives on Windows (#7910 )
45
56## 0.10.6
67
Original file line number Diff line number Diff line change @@ -89,9 +89,15 @@ async function checkCLIInstallation(): Promise<void> {
8989 "latest"
9090 ] ;
9191 const env = { ...process . env , VSCODE_CWD : "" } ;
92- const versionRes = spawnSync ( "firebase" , [ "--version" ] , { env } ) ;
92+ const versionRes = spawnSync ( "firebase" , [ "--version" ] , {
93+ env,
94+ shell : process . platform === "win32" ,
95+ } ) ;
9396 const currentVersion = semver . valid ( versionRes . stdout ?. toString ( ) ) ;
94- const npmVersionRes = spawnSync ( "npm" , [ "--version" ] ) ;
97+ const npmVersionRes = spawnSync ( "npm" , [ "--version" ] , {
98+ env,
99+ shell : process . platform === "win32" ,
100+ } ) ;
95101 const npmVersion = semver . valid ( npmVersionRes . stdout ?. toString ( ) ) ;
96102 if ( ! currentVersion ) {
97103 message = `The Firebase CLI is not installed (or not available on $PATH). If you would like to install it, run ${
You can’t perform that action at this time.
0 commit comments