Skip to content

pantoken / tools/aggregate/src / Target

Interfaccia: Target

Beta

Un target scoperto tramite il suo campo pantoken.

Proprietà

pkg

pkg: string

Beta

Il nome del pacchetto, es. @pantoken/astro.


key

key: string

Beta

La chiave di aggregazione / nome dell'export, es. astro.


kind

kind: "namespace" | "sideEffect" | "subpath"

Beta

Come il target è esposto:

  • namespace — re-esportato nel barrel eager e come sottopercorso.
  • sideEffect — il sottopercorso importa la voce /inject del pacchetto; è anche nel barrel.
  • subpath — solo sottopercorso, mantenuto FUORI dal barrel eager (per peer pesanti come React, così import "pantoken" non li carica mai).