Skip to content

Commit fd77550

Browse files
author
tal-rofe
committed
fix: 🐞 fix Windows executable paths
fix Windows executable paths
1 parent 8ff8a9f commit fd77550

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žsrc/modules/use/helpers/vscode.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const installExtensions = async (libraries: string[]) => {
9494
const vsCodeData = await envinfo.helpers.getVSCodeInfo();
9595

9696
if (vsCodeData[2]) {
97-
vsCodeCliCommandPath = vsCodeData[2];
97+
vsCodeCliCommandPath = `"${vsCodeData[2]}"`;
9898
}
9999
}
100100

β€Žsrc/modules/use/utils/install-library.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const installLibraries = async (libraryNames: string[]) => {
2828
throw new Error('Could not find NPM');
2929
}
3030

31-
await asyncExecFile(npmInfo[2], ['i', '-D', ...transformedLibraryNames], {
31+
await asyncExecFile(`"${npmInfo[2]}"`, ['i', '-D', ...transformedLibraryNames], {
3232
cwd: EXLINT_FOLDER_PATH,
3333
timeout: INSTALLATION_TIMEOUT,
3434
shell: true,

0 commit comments

Comments
Β (0)