packages icon indicating copy to clipboard operation
packages copied to clipboard

Proposal: Add a `type` field

Open Azathothas opened this issue 6 months ago • 1 comments

Hi, Currently, there's no way to distinguish between library or executable (cli) Nim packages.

I propose a new field: type.

It would be an array and could contain:

  1. If the package is an executable only package:
{
  "type": [
    "executable"
  ]
}
  1. If the package is a library only package:
{
  "type": [
    "library"
  ]
}
  1. If the package is both executable & library:
{
  "type": [
    "library",
    "executable"
  ]
}

This would enable better package discovery and filtering capabilities.

Azathothas avatar Jul 06 '25 06:07 Azathothas