From f50e47383268506c0309ce3ae05d81da0214b8c6 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Mon, 4 May 2020 13:32:20 +0200 Subject: [PATCH] propose change for #220 highlighted in https://github.com/ds300/patch-package/issues/220 --- src/makePatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makePatch.ts b/src/makePatch.ts index 13376b11..1db5e87c 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -163,7 +163,7 @@ export function makePatch({ // remove nested node_modules just to be safe rimraf(join(tmpRepoPackagePath, "node_modules")) // remove .git just to be safe - rimraf(join(tmpRepoPackagePath, "node_modules")) + rimraf(join(tmpRepoPackagePath, ".git")) // commit the package console.info(chalk.grey("•"), "Diffing your files with clean files")