Skip to content

Commit

Permalink
feat(rari-npm): use bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Nov 25, 2024
1 parent a5f2a11 commit be311ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rari-npm/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
binary/
bin
1 change: 1 addition & 0 deletions rari-npm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
2 changes: 1 addition & 1 deletion rari-npm/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { join } from "node:path";

export const rariBin = join(
import.meta.dirname,
`../binary/rari${process.platform === "win32" ? ".exe" : ""}`,
`../bin/rari${process.platform === "win32" ? ".exe" : ""}`,
);
2 changes: 1 addition & 1 deletion rari-npm/lib/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { download, exists } from "./download.js";
import packageJson from "../package.json" with { type: "json" };

const VERSION = `v${packageJson.version}`;
const BIN_PATH = join(import.meta.dirname, "../binary");
const BIN_PATH = join(import.meta.dirname, "../bin");
const FORCE = JSON.parse(process.env.FORCE || "false");
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;

Expand Down

0 comments on commit be311ef

Please sign in to comment.