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.
2 parents bb9009d + 973d40f commit 3c0883aCopy full SHA for 3c0883a
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"
@@ -189,7 +190,8 @@ export function makePatch({
189
190
// replace package with user's version
191
rimraf(tmpRepoPackagePath)
192
- copySync(packagePath, tmpRepoPackagePath)
193
+ // pnpm installs packages as symlinks, copySync would copy only the symlink
194
+ copySync(realpathSync(packagePath), tmpRepoPackagePath)
195
196
// remove nested node_modules just to be safe
197
rimraf(join(tmpRepoPackagePath, "node_modules"))
0 commit comments