NativeScript / NativeScript/nativescript-cli
`tns prepare ios --watch` does not "watch" the project/node_modules for changes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
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: 6.0.2
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:
- Plugin(s):
Describe the bug
Executing tns prepare ios --watch on a project compatible with 6.0.0, the project is correctly prepared but it is not being watched and making any changes to the app or node_modules folders does not trigger new prepare.
To Reproduce
- Make a new app using CLI
- Run `tns prepare ios --watch
- Wait for the project to prepare
- Make changes to the app folder or any nativescript plugin in node_modules
- The app is not re-prepared
Expected behavior
Using --watch watches the app and node_modules for changes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running tns prepare ios --watch in a new CLI-compatible app and observe whether changes under the app and node_modules directories trigger another prepare. Trace the prepare ios watch entry point and its file-watching setup; done means both locations reliably trigger re-preparation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100