Skip to content

fix: add pricing.js and pricing.json to package files#10

Merged
f merged 1 commit intof:masterfrom
ozers:fix/add-pricing-to-package-files
Mar 8, 2026
Merged

fix: add pricing.js and pricing.json to package files#10
f merged 1 commit intof:masterfrom
ozers:fix/add-pricing-to-package-files

Conversation

@ozers
Copy link
Contributor

@ozers ozers commented Mar 8, 2026

Summary

  • cache.js requires ./pricing, but pricing.js and pricing.json are missing from the files array in package.json
  • This causes npx agentlytics to crash with MODULE_NOT_FOUND since these files are not included in the published npm package

Reproduce

npx agentlytics
Error: Cannot find module './pricing'
Require stack:
- .../agentlytics/cache.js
- .../agentlytics/index.js

Fix

Added pricing.js and pricing.json to the files array in package.json.

Verified with npm pack --dry-run that both files are now included in the package.

cache.js requires ./pricing but these files were missing from the
files array in package.json, causing npx agentlytics to crash with
MODULE_NOT_FOUND.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mustafamasa
Copy link

Hi @ozers,
I was just about to open an issue about this error but saw your PR.
I hit the same Cannot find module './pricing' error when running npx agentlytics.

Thanks for the fix!

@ozers
Copy link
Contributor Author

ozers commented Mar 8, 2026

Hi @ozers, I was just about to open an issue about this error but saw your PR. I hit the same Cannot find module './pricing' error when running npx agentlytics.

Thanks for the fix!

Thanks! Glad I wasn't the only one :)

@f f merged commit b420128 into f:master Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants