Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 5.3.0-2019-03-27-13090
- Cross-platform modules: 5.3.0
- Android Runtime: 5.2.0
- iOS Runtime: 5.2.0
Describe the bug
When developing an NativeScript plugin and using the following workflow, any changes to the .ts files of the developed plugin do not trigger sync to the device:
Workflow:
- Use a symlink to the
src
folder which hold the plugin's source codetns plugin add ...
- Run the NativeScript typescript application using bundle
tns run ios --bundle
- Make a changes to one of the platform specific files of the plugin's source code (.android.ts or .ios.ts)
- No changes are detected and the already running app is not updated with those changes
To Reproduce
Use the above workflow with any plugin that is created from the plugin-seed like nativescript-picker, run its demo and make a change in the picker.ios.ts file.
Expected behavior
Doing the above should force a webpack build and a refresh of the app in the simulator/device without full build (a.k.a a live sync).
Sample project
A demo project can be found here, use the above workflow to build it.