Skip to content

Commit

Permalink
fix bin linking
Browse files Browse the repository at this point in the history
since the binary `zero_sqlite3` does not exist during `npm install`, it never gets linked into `node_modules/.bin`. We need a wrapper script that exists from the start and points to the binary.
  • Loading branch information
Matthew Wonlaw committed Oct 30, 2024
1 parent 2339c2d commit e6b1192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocicorp/zero-sqlite3",
"version": "1.0.1",
"version": "1.0.2",
"description": "better-sqlite3 on bedrock",
"homepage": "https://github.com/rocicorp/zero-sqlite3",
"author": "Rocicorp",
Expand All @@ -10,13 +10,14 @@
},
"main": "lib/index.js",
"bin": {
"zero-sqlite3": "./build/Release/zero_sqlite3"
"zero-sqlite3": "./shell.sh"
},
"files": [
"binding.gyp",
"src/*.[ch]pp",
"lib/**",
"deps/**"
"deps/**",
"shell.sh"
],
"types": "lib/index.d.ts",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./build/Release/zero_sqlite3

0 comments on commit e6b1192

Please sign in to comment.