Skip to content

Commit

Permalink
Fix better-sqlite3 native module rebuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Sep 13, 2023
1 parent ea0278f commit 5db0722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/helpers/install-backend-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ function installBackendDeps {
npm i --production --no-audit --progress=false
checkNodeModulesDir "$WORKER_FOLDER"
npm ls --depth=0 --only=prod 1<&-
cd "./node_modules/better-sqlite3"
npx node-gyp rebuild --debug --build-from-source --runtime="$npm_config_runtime" --target="$ELECTRON_VER" --dist-url="$DIST_URL"

cd "$INSTALL_BACKEND_CURRDIR"
}

0 comments on commit 5db0722

Please sign in to comment.