Skip to content

Commit

Permalink
fix: 🐞 fix Windows executable paths
Browse files Browse the repository at this point in the history
fix Windows executable paths
  • Loading branch information
tal-rofe committed Feb 17, 2023
1 parent 8ff8a9f commit fd77550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/use/helpers/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const installExtensions = async (libraries: string[]) => {
const vsCodeData = await envinfo.helpers.getVSCodeInfo();

if (vsCodeData[2]) {
vsCodeCliCommandPath = vsCodeData[2];
vsCodeCliCommandPath = `"${vsCodeData[2]}"`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/use/utils/install-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const installLibraries = async (libraryNames: string[]) => {
throw new Error('Could not find NPM');
}

await asyncExecFile(npmInfo[2], ['i', '-D', ...transformedLibraryNames], {
await asyncExecFile(`"${npmInfo[2]}"`, ['i', '-D', ...transformedLibraryNames], {
cwd: EXLINT_FOLDER_PATH,
timeout: INSTALLATION_TIMEOUT,
shell: true,
Expand Down

0 comments on commit fd77550

Please sign in to comment.