nf publish does not read .gitignore or .nfignore

未关闭
#260 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
领域
build-system, cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
2
派生
2
平均合并
2 天 18 小时
30 天内合并 PR
17

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NanoForge-dev/CLI 的其他 Issue

查看 NanoForge-dev/CLI 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。