From 73b6b22c453cc4e3cd9247e0d411fd5970e8dcfe Mon Sep 17 00:00:00 2001 From: Peter Stenger Date: Sat, 4 Apr 2026 23:04:33 -0400 Subject: [PATCH] fix: add files field to package.json to include missing modules 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/XActions#9 Fixes nirholas/XActions#11 Co-Authored-By: Claude Opus 4.6 (1M context) --- package-lock.json | 4 ++-- package.json | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f80d2d02..0a85e615 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "xactions", - "version": "3.1.0", + "version": "3.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "xactions", - "version": "3.1.0", + "version": "3.1.1", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.0.0", diff --git a/package.json b/package.json index 6c978aac..c0878ff4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xactions", - "version": "3.1.0", + "version": "3.1.1", "description": "XActions - The Complete X/Twitter Automation Toolkit. Scrapers, MCP server for AI agents, CLI, and browser scripts. No API required. Open source by @nichxbt. Don't Panic.", "homepage": "https://xactions.app", "repository": { @@ -175,6 +175,11 @@ "algorithm-training", "x-algorithm" ], + "files": [ + "src/", + "types/", + "api/config/" + ], "engines": { "node": ">=18.0.0" }