feat: add publish script for claude-mem

- Implemented a CLI tool for version bumping, building, and publishing to npm.
- Added checks for uncommitted changes and current version retrieval.
- Included options for patch, minor, major, and custom version bumps.
- Integrated git commit and tagging after version update.
- Added npm publish functionality and git push after successful publish.
- Implemented error handling and user confirmations throughout the process.
This commit is contained in:
Alex Newman
2025-10-14 19:26:11 -04:00
parent 5f15695c3f
commit 5886fe7d8f
8 changed files with 856 additions and 457 deletions
+7
View File
@@ -35,9 +35,16 @@
"bin": {
"claude-mem": "./dist/claude-mem.min.js"
},
"scripts": {
"build": "node build.js",
"publish:npm": "node publish.js",
"dev": "bun run src/bin/cli.ts",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.0",
"@clack/prompts": "^0.11.0",
"better-sqlite3": "^11.8.1",
"boxen": "^8.0.1",
"chalk": "^5.6.0",
"commander": "^14.0.0",