{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/node-package-exports.schema.json",
  "title": "node-package-exports (summary schema)",
  "description": "Fill draft, 18 November 2026. Not published. Queued note; iil_id is null until the note is published.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "node-package-exports"
    },
    "iil_id": {
      "type": "null",
      "description": "Not live yet; the iil:note ID is assigned when the note is published."
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/node-package-exports/"
    },
    "claim": {
      "type": "string",
      "description": "List entry points in the `\"exports\"` field, with `\".\"` as the main entry point and `\"./name\"` keys for subpaths."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "node-package-exports",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/node-package-exports/",
      "claim": "List entry points in the `\"exports\"` field, with `\".\"` as the main entry point and `\"./name\"` keys for subpaths.",
      "license": "CC-BY-4.0",
      "source_license": "MIT (Node.js API docs); MIT (Node.js Learn); prose restates cited source lines in own words",
      "as_of": "2026-11-18",
      "status": "fill-draft-20261118",
      "claims": [
        {
          "id": "C1",
          "claim": "Undefined subpaths throw ERR_PACKAGE_PATH_NOT_EXPORTED.",
          "source_id": "S1"
        },
        {
          "id": "C2",
          "claim": "The default condition should always come last.",
          "source_id": "S1"
        },
        {
          "id": "C3",
          "claim": "Export paths must be relative file URLs starting with ./",
          "source_id": "S1"
        },
        {
          "id": "C4",
          "claim": "exports prevents external access to internal code.",
          "source_id": "S2"
        }
      ],
      "related_slugs": [
        "node-subpath-imports",
        "node-esm",
        "node-commonjs-modules"
      ],
      "related_artifacts": [
        "node-package-exports.table.json"
      ]
    }
  ]
}