From 263f37e0e26ff7b9e59013813489f8d26f7b638c Mon Sep 17 00:00:00 2001 From: Jimmy Sinn Date: Tue, 28 Jun 2022 16:33:23 +0800 Subject: [PATCH] dereference symlink on copying .npmrc and .yarnrc --- src/makePatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makePatch.ts b/src/makePatch.ts index 13696703..9736431d 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -115,7 +115,7 @@ export function makePatch({ ;[".npmrc", ".yarnrc"].forEach((rcFile) => { const rcPath = join(appPath, rcFile) if (existsSync(rcPath)) { - copySync(rcPath, join(tmpRepo.name, rcFile)) + copySync(rcPath, join(tmpRepo.name, rcFile), { dereference: true }) } })