NativeScript / NativeScript/nativescript-cli
tns update deletes the hooks folder
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Hi,
I would like to create an iOS application which before preparing the project runs a little script which updates the Info.plist files with the appropriate version number.
It works perfectly, but when I run tns update than my hooks folder just deleted and adds only the 'nativescript-dev-typescript.js' files into it, so it removes my before-prepare script.
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 reproducing the issue with an iOS application that has a custom before-prepare script in its hooks folder, then run tns update. Trace how tns update rebuilds or replaces the hooks folder; done means the custom script remains while the nativescript-dev-typescript.js file is still added.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100