From da5641faabfb643c45d2b2a4b5c946f117baba2c Mon Sep 17 00:00:00 2001 From: David Snelling Date: Tue, 26 Aug 2025 13:37:44 -0700 Subject: [PATCH] chore: Add .npmignore to exclude models from npm package - npm package will be ~5.5MB instead of 200MB+ - Models download automatically on first use - Added models-cache/ to .gitignore --- .gitignore | 1 + .npmignore | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 98d891d1..ea3dcba5 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,7 @@ TODO_PRIVATE.md # Models (downloaded at runtime) models/ +models-cache/ # Development planning files (not for commit) PLAN.md diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..f80c4312 --- /dev/null +++ b/.npmignore @@ -0,0 +1,84 @@ +# Source files (not needed in package) +src/ +tests/ +scripts/ +coverage/ + +# Model files (downloaded on first use, not bundled) +models/ +models-cache/ + +# Development and backup files +backup-* +backup-*/ +docs/backup*/ + +# Documentation (except essentials) +*.md +!README.md +!LICENSE +!CHANGELOG.md +!MIGRATION.md + +# Configuration files +.gitignore +.npmignore +tsconfig.json +vitest.config.ts +vitest.config.mts +*.config.js +*.config.ts +.eslintrc* +.prettierrc* + +# Test files +test-*.js +test-*.ts +*.test.ts +*.test.js +*.spec.ts +*.spec.js + +# Temporary and log files +*.log +*.tmp +tmp/ +temp/ +brainy-data/ + +# Git and CI files +.git/ +.github/ +.gitlab-ci.yml +.travis.yml + +# IDE files +.vscode/ +.idea/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db + +# Private files +PLAN.md +CLAUDE.md +INTERNAL_NOTES.md +TODO_PRIVATE.md +*-ANALYSIS.md +*-PLAN.md + +# Build artifacts not needed +*.tsbuildinfo +*.map + +# Development environment +.env* +.nvm* +.node-version + +# Keep dist/ for the compiled code +# Keep bin/ for the CLI +# Keep package.json, package-lock.json \ No newline at end of file