NativeScript / NativeScript/nativescript-cli

tns update deletes the hooks folder

Open
#2,947 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature update
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.