Skip to content

Commit

Permalink
remove .pnpm suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
khuezy committed Nov 15, 2023
1 parent fd2a90d commit 432be90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/open-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"access": "public"
},
"name": "open-next",
"version": "0.0.0-bloat.4",
"version": "0.0.0-bloat.5",
"bin": {
"open-next": "./dist/index.js"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/open-next/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ function removeNodeModule(nodeModulesPath: string, modules: string[]) {

for (const module of modules) {
const modulePath = path.join(nodeModulesPath, module);
const pnpmModulePath = path.join(nodeModulesPath, ".pnpm", module);
// modules in .pnpm have the version suffix, eg: .pnpm/[email protected]
const pnpmModulePath = path.join(nodeModulesPath, ".pnpm", `${module}@*`);

if (isWindows) {
exec(
Expand Down

0 comments on commit 432be90

Please sign in to comment.