Skip to content

Commit

Permalink
add bin to the released package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Aug 25, 2024
1 parent 6b07b24 commit 2222e22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
File renamed without changes.
3 changes: 3 additions & 0 deletions npm_package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"scripts": {
"postinstall": "node ./post_install.js"
},
"bin": {
"odiff": "bin/odiff.exe"
},
"types": "odiff.d.ts",
"main": "odiff.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion npm_package/post_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (!binaryFile) {
}

const sourcePath = path.join(__dirname, 'raw_binaries', binaryFile);
const destPath = path.join(__dirname, 'bin', 'odiff');
const destPath = path.join(__dirname, 'bin', 'odiff.exe');

try {
fs.copyFileSync(sourcePath, destPath);
Expand Down

0 comments on commit 2222e22

Please sign in to comment.