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