-
Notifications
You must be signed in to change notification settings - Fork 5
Description
@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
- npm install @github/models@0.0.1-beta.1
- ls -la node_modules/@github/models/ (no dist/ directory)
- Try to import: import { githubModels } from '@github/models'
- 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.