Skip to content

Commit

Permalink
fix: over extracting native modules with pnpm (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner authored Jan 3, 2024
1 parent cd89e83 commit e435796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prelude/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ function payloadFileSync(pointer) {

// Example: moduleFolder = /snapshot/appname/node_modules/sharp/build/Release
const parts = moduleFolder.split(path.sep);
const mIndex = parts.indexOf('node_modules') + 1;
const mIndex = parts.lastIndexOf('node_modules') + 1;

let newPath;

Expand Down

0 comments on commit e435796

Please sign in to comment.