NativeScript / NativeScript/nativescript-cli

hooks folder isn't generated when node_modules are present

Đang mở
#4,544 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@tsonevn đang làm issue này rồi.

Từ ngày 17/4/2019.

feature
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

@armpogart commented on Tue Apr 16 2019

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.1
  • Cross-platform modules: 5.3.1
  • Android Runtime: 5.3.1
  • iOS Runtime: 5.3.1
  • Plugin(s):

Describe the bug

When node_modules folder is present and hooks folder is not present, tns install doesn't generate it, it only generates platforms folder. That causes to build fail afterwards with not clear error message.

To Reproduce

After creating clear project remove hooks folder and run tns install.

Expected behavior
Hooks folder to be regenerated and on tns build or tns run clear message that hooks folder is not present.

Sample project

Additional context

It is usual practice to cache node_modules in CI environment which will prevent hooks folder to be generated on tns install. Also the lack of clear message and some other unrelated message caused me to debug issue for several hours.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.