Skip to content

Commit 239adcb

Browse files
authored
Merge pull request #1966 from NativeScript/livesync-skip-tns_modules
Don't livesync tns_modules folder for iOS device
2 parents 6c277d3 + a17d376 commit 239adcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/providers/livesync-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class LiveSyncProvider implements ILiveSyncProvider {
8888
temp.track();
8989
let tempZip = temp.path({prefix: "sync", suffix: ".zip"});
9090
this.$logger.trace("Creating zip file: " + tempZip);
91-
this.$childProcess.spawnFromEvent("zip", [ "-r", "-0", tempZip, "app" ], "close", { cwd: path.dirname(projectFilesPath) }).wait();
91+
this.$childProcess.spawnFromEvent("zip", [ "-r", "-0", tempZip, "app", "-x", "app/tns_modules/*" ], "close", { cwd: path.dirname(projectFilesPath) }).wait();
9292

9393
deviceAppData.device.fileSystem.transferFiles(deviceAppData, [{
9494
getLocalPath: () => tempZip,

0 commit comments

Comments
 (0)