From 42aa184074dd892e32e4d7a2f2a8832eaa11253f Mon Sep 17 00:00:00 2001 From: Nikolas Hor <116851567+nikolasdehor@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:49:46 -0300 Subject: [PATCH] fix: add .npmignore to reduce npm tarball from 533 to 348 files (#1900) The package was shipping 6.2 MB including docs/, website/, test/, .github/, banner images, and dev config files. With .npmignore, the tarball drops to 555 KB (91% reduction) while keeping all runtime files (src/, tools/cli/, tools/lib/). Fixes #1870 Co-authored-by: Brian --- .npmignore | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..452bb4ba4 --- /dev/null +++ b/.npmignore @@ -0,0 +1,40 @@ +# Development & Testing +test/ +.husky/ +.github/ +.vscode/ +.augment/ +coverage/ +test-output/ + +# Documentation site (users access docs online) +docs/ +website/ + +# Configuration files (development only) +.coderabbit.yaml +.markdownlint-cli2.yaml +.prettierignore +.nvmrc +eslint.config.mjs +prettier.config.mjs + +# Build tools (not needed at runtime) +tools/build-docs.mjs +tools/fix-doc-links.js +tools/validate-doc-links.js +tools/validate-file-refs.js +tools/validate-agent-schema.js + +# Images (branding/marketing only) +banner-bmad-method.png +Wordmark.png + +# Repository metadata +CONTRIBUTING.md +CONTRIBUTORS.md +SECURITY.md +TRADEMARK.md +CHANGELOG.md +CNAME +CODE_OF_CONDUCT.md