From @aaayushsingh on September 3, 2018 18:47
I have a hook that needs to check if tns run <platform> --syncAllFiles was used or just tns run <platform>. Basically I need to check for --syncAllFiles flag. I couldn't find a resource for this.
or is there another way to execute a hook on full build and ignore otherwise?
Copied from original issue: NativeScript/NativeScript#6236