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"));