Skip to content

Commit f524d7d

Browse files
JochenYangclaude
andcommitted
chore(v2.2.4): optimize npm package publishing configuration
- Add files field in package.json to strictly control published content - Only publish compiled dist files, README, LICENSE, and CHANGELOG - Significantly reduce package size by excluding source code - Improve security by not exposing source code in published package - Follow npm official best practices for package distribution 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c509412 commit f524d7d

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.2.4] - 2025-11-24
9+
10+
### Changed
11+
12+
- **NPM Package Optimization**: Improved package publishing configuration for better distribution
13+
- Added `files` field in `package.json` to strictly control published content
14+
- Now only publishes compiled `dist/**/*`, `README.md`, `LICENSE`, and `CHANGELOG.md`
15+
- Significantly reduces package size by excluding source code and development files
16+
- Improves security by not exposing source code in the published package
17+
18+
### Technical Details
19+
20+
- **Package Structure**: Only distribution-ready files are now included in npm package
21+
- **Best Practice**: Follows npm official recommendation of using `files` field over `.npmignore`
22+
- **Backward Compatible**: No breaking changes, only internal distribution improvements
23+
24+
---
25+
826
## [2.2.3] - 2025-11-23
927

1028
### Fixed

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devmind-mcp",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "DevMind MCP - AI Assistant Memory System - Pure MCP Tool",
55
"main": "dist/index.js",
66
"type": "module",
@@ -51,5 +51,14 @@
5151
},
5252
"engines": {
5353
"node": ">=20.0.0"
54+
},
55+
"files": [
56+
"dist/**/*",
57+
"README.md",
58+
"LICENSE",
59+
"CHANGELOG.md"
60+
],
61+
"publishConfig": {
62+
"access": "public"
5463
}
5564
}

0 commit comments

Comments
 (0)