Skip to content

@github/models npm package missing dist/ directory - import failures #14

@meefs

Description

@meefs

@garman , @megan-arellano , @maraisr

The published npm package @github/models@0.0.1-beta.1 is missing the compiled dist/ directory
containing the built JavaScript files, making the package unusable despite having correct package.json
configuration.

Environment

  • Package: @github/models@0.0.1-beta.1
  • Node.js: v24.9.0
  • npm: Latest
  • OS: macOS (affects all platforms)
  • Bundler: Vite (affects all bundlers)

Expected Behavior

According to the package.json and README documentation:
import { githubModels } from '@github/models'
// Should work without errors

Actual Behavior

Import fails with:
Failed to resolve entry for package "@github/models".
The package may have incorrect main/module/exports specified in its package.json.

Root Cause

The package.json specifies:
{
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
}

But the published package contains only:
license.txt
package.json
readme.md

The dist/ directory is completely missing.

Steps to Reproduce

  1. npm install @github/models@0.0.1-beta.1
  2. ls -la node_modules/@github/models/ (no dist/ directory)
  3. Try to import: import { githubModels } from '@github/models'
  4. Build fails with module resolution error

Investigation

  • ✅ package.json exports configuration is correct
  • ❌ Built files referenced by package.json are missing
  • ❌ Installing directly from GitHub repo has same issue
  • ❌ Only published version available (0.0.1-beta.1) has this problem

Impact

  • Package is completely unusable
  • Blocks adoption of GitHub Models for AI SDK integration
  • Incompatible with ai-sdk

Workaround

None available without manually building from source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions