We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f73bd commit 973d40fCopy full SHA for 973d40f
src/makePatch.ts
@@ -9,6 +9,7 @@ import {
9
mkdirSync,
10
unlinkSync,
11
mkdirpSync,
12
+ realpathSync,
13
} from "fs-extra"
14
import { sync as rimraf } from "rimraf"
15
import { copySync } from "fs-extra"
@@ -181,7 +182,8 @@ export function makePatch({
181
182
// replace package with user's version
183
rimraf(tmpRepoPackagePath)
184
- copySync(packagePath, tmpRepoPackagePath)
185
+ // pnpm installs packages as symlinks, copySync would copy only the symlink
186
+ copySync(realpathSync(packagePath), tmpRepoPackagePath)
187
188
// remove nested node_modules just to be safe
189
rimraf(join(tmpRepoPackagePath, "node_modules"))
0 commit comments