Skip to content

Commit 1b00b22

Browse files
rathbomaclaude
andcommitted
Prevent build artifacts from being cached
Add .npmignore to exclude build/ and bin/ directories from package cache. This ensures native modules are always freshly built on the target system, preventing MODULE_VERSION mismatches in Electron. Fixes issue where yarn cache includes stale Node.js builds that don't get rebuilt for Electron. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 59839d3 commit 1b00b22

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Don't include build artifacts in package/cache
2+
# These should be built on the target system
3+
build/
4+
bin/
5+
bin32/
6+
bin64/
7+
8+
# Development files
9+
.github/
10+
test/
11+
*.log
12+
.DS_Store

0 commit comments

Comments
 (0)