From d140a7c86bbb3e67714facf2b9e95e7ce9d7b896 Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Wed, 26 Oct 2016 11:15:11 +0300 Subject: [PATCH] extract tns-core-modules on root level of tns_modules --- lib/tools/node-modules/node-modules-dest-copy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tools/node-modules/node-modules-dest-copy.ts b/lib/tools/node-modules/node-modules-dest-copy.ts index b6e2ec9615..c8cc87c910 100644 --- a/lib/tools/node-modules/node-modules-dest-copy.ts +++ b/lib/tools/node-modules/node-modules-dest-copy.ts @@ -30,6 +30,11 @@ export class TnsModulesCopy { Future.wait(deleteFilesFutures); shelljs.rm("-rf", path.join(tnsCoreModulesResourcePath, "node_modules")); + + // TODO: The following two lines are necessary to temporarily work around hardcoded + // path dependencies in iOS livesync logic. Should be addressed ASAP + shelljs.cp("-Rf", path.join(tnsCoreModulesResourcePath, "*"), this.outputRoot); + shelljs.rm("-rf", tnsCoreModulesResourcePath); } } }