nf publish does not read .gitignore or .nfignore

Aperta
#260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
build-system, cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
2
Fork
2
Merge medio
2g 18h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NanoForge-dev/CLI

Tutte le issue di NanoForge-dev/CLI

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.