Skip to content

Commit

Permalink
fix pnpm again
Browse files Browse the repository at this point in the history
  • Loading branch information
PayneFuRC committed Mar 21, 2024
1 parent 195f708 commit c582bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/asar/asarUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function getDestinationPath(file: string, fileSet: ResolvedFileSet) {
const src = fileSet.src
const dest = fileSet.destination
if (file.length > src.length && file.startsWith(src) && file[src.length] === path.sep) {
return dest + file.substring(src.length)
return (dest + file.substring(src.length)).replace(`${path.sep}.pnpm`, "")
} else {
// hoisted node_modules
// not lastIndexOf, to ensure that nested module (top-level module depends on) copied to parent node_modules, not to top-level directory
Expand Down

0 comments on commit c582bfd

Please sign in to comment.