Skip to content

Commit

Permalink
Directly execute fnm instead of using PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Oct 30, 2023
1 parent d9a5c3b commit 831d1b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-bees-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"every-ts": patch
---

Directly execute fnm instead of using PATH
3 changes: 1 addition & 2 deletions src/fnm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@ export async function ensureFnm() {

if (process.platform !== `win32`) {
await fs.promises.chmod(path.join(fnmDir, `fnm`), 0o755);
process.env[`PATH`] = `${fnmDir}${path.delimiter}${process.env[`PATH`]}`;
}

fnmInstalled = true;
}

const fnmExe = process.platform === `win32` ? path.join(fnmDir, `fnm.exe`) : `fnm`;
const fnmExe = path.join(fnmDir, process.platform === `win32` ? `fnm.exe` : `fnm`);

const installedNode = new Set<string>();

Expand Down

0 comments on commit 831d1b7

Please sign in to comment.