From fcbaf516a28fa21d3a6e841503d030e2baea189f Mon Sep 17 00:00:00 2001 From: Paul Peavyhouse Date: Thu, 8 Feb 2018 12:34:47 -0800 Subject: [PATCH] Fix https://github.com/NativeScript/nativescript-cli/issues/3028 --- lib/tools/node-modules/node-modules-dest-copy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/node-modules/node-modules-dest-copy.ts b/lib/tools/node-modules/node-modules-dest-copy.ts index 37d6a03903..74a5d9b32c 100644 --- a/lib/tools/node-modules/node-modules-dest-copy.ts +++ b/lib/tools/node-modules/node-modules-dest-copy.ts @@ -42,7 +42,7 @@ export class TnsModulesCopy { const isScoped = dependency.name.indexOf("@") === 0; const destinationPath = isScoped ? path.join(this.outputRoot, dependency.name.substring(0, dependency.name.indexOf("/"))) : this.outputRoot; - shelljs.cp("-RfL", dependency.directory, destinationPath); + shelljs.cp("-RuL", dependency.directory, destinationPath); // remove platform-specific files (processed separately by plugin services) shelljs.rm("-rf", path.join(targetPackageDir, "platforms"));