Skip to content

fix: include missing client/api modules in npm package#15

Open
reteps wants to merge 1 commit intonirholas:mainfrom
reteps:fix-publish
Open

fix: include missing client/api modules in npm package#15
reteps wants to merge 1 commit intonirholas:mainfrom
reteps:fix-publish

Conversation

@reteps
Copy link
Copy Markdown

@reteps reteps commented Apr 5, 2026

Summary

  • Adds "files" field to package.json so search.js and parsers.js (and all other src/client/api/ modules) are included in the published npm package
  • Bumps version to 3.1.1
  • Reduces npm package size from 128 MB / 3,786 files to 4 MB / 306 files by only shipping runtime-necessary directories (src/, types/, api/config/)

Fixes #9
Fixes #11

Test plan

  • npm pack --dry-run confirms src/client/api/search.js and src/client/api/parsers.js are included
  • node -e "import('./src/client/Scraper.js')" resolves without error
  • node -e "import('./src/client/api/parsers.js')" resolves without error
  • vitest run — 871 passed, no new failures (3 pre-existing failures: MCP test uses node:test not vitest, x402 integration tests require running server)

🤖 Generated with Claude Code

search.js and parsers.js in src/client/api/ were missing from the
published npm package, causing fatal errors on startup for users
installing via npx xactions-mcp.

Adds an explicit "files" field to package.json listing only the
directories needed at runtime (src/, types/, api/config/). This
fixes the missing module errors and reduces the package from 128 MB
(3786 files) to 4 MB (306 files).

Fixes nirholas#9
Fixes nirholas#11

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

@reteps is attempting to deploy a commit to the kaivocmenirehtacgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@reteps
Copy link
Copy Markdown
Author

reteps commented Apr 5, 2026

Prompt:

fix https://github.com/nirholas/XActions/issues/9 and https://github.com/nirholas/XActions/issues/11

  on a fix-publish branch, then make a draft pr to upstream. make sure lint/build/etc. passes first.

@reteps reteps marked this pull request as ready for review April 5, 2026 03:05
@reteps reteps requested a review from nirholas as a code owner April 5, 2026 03:05
"files": [
"src/",
"types/",
"api/config/"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing else in api is needed for the server.

"algorithm-training",
"x-algorithm"
],
"files": [
Copy link
Copy Markdown
Author

@reteps reteps Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, the resulting package was extremely bloated (100MB -> 4MB w/fix). Additionally, some of these files were added after publish.

@reteps
Copy link
Copy Markdown
Author

reteps commented Apr 5, 2026

Worth noting: this was not sufficient to get this tool working for me locally! I needed reteps#1 as well (an iteration of #12)

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.

[bug] npx -y xactions-mcp: client/api/parsers.js missing [bug] Missing search.js in npm package — Fatal error on startup

1 participant