nf publish does not read .gitignore or .nfignore

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Start at the nf publish packaging flow in @nanoforge-dev/cli, then inspect how the editor reads .nfignore for its file tree and how --dry-run displays packed files. The issue says to apply .nfignore and .gitignore from the package folder before the built-in deny list; done means matching files are absent from both the packed file list and dry-run output. The registry library move is described as not merged yet, so check that branch context first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

command:publish enhancement
Which package is this feature request for?

@nanoforge-dev/cli

Which command is this feature request for?

publish

Feature

nf publish packs only what the manifest names, but it doesn't read .gitignore or a .nfignore. A file inside a named folder (src/, assets/) that the project ignores, such as a generated or local file, is still published unless its name is on the built-in deny list.

Ideal solution or implementation

Read .nfignore (the editor already has one, .nfignore, for its file tree) and .gitignore of the package folder, and leave out what they match, before the deny list. The packed file list and --dry-run show the result.

Alternative solutions or implementations

Only .nfignore, so that publishing doesn't depend on git's rules.

Other context

Found during the feat/registry-lib change (not merged yet): @nanoforge-dev/registry moves from the editor to libs/registry, and nf install/publish/unpublish use it.

Ngôn ngữ chính
TypeScript
Star
2
Fork
2
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

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.

Issue khác của NanoForge-dev/CLI

Tất cả issue của NanoForge-dev/CLI

Issue tương tự

Thêm issue về TypeScript

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.