Просмотр исходного кода

fix: run build automatically during npm install from github

Added npm run build to prepare script so that installing via
npm install -g github:sweetrb/apple-mail-mcp works correctly.
Previously, the build/ directory was gitignored so the compiled
files were missing after install.

Bumped version to 1.0.1.
Robert Sweet 5 месяцев назад
Родитель
Сommit
7e9523fe1f
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      package-lock.json
  2. 2 2
      package.json

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "apple-mail-mcp",
-  "version": "0.1.0",
+  "version": "1.0.0",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "apple-mail-mcp",
-      "version": "0.1.0",
+      "version": "1.0.0",
       "license": "MIT",
       "os": [
         "darwin"

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "apple-mail-mcp",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "MCP server for Apple Mail - read, search, send, and manage emails via Claude",
   "type": "module",
   "main": "build/index.js",
@@ -26,7 +26,7 @@
     "format:check": "prettier --check src",
     "typecheck": "tsc --noEmit",
     "prepublishOnly": "npm run lint && npm run test && npm run build",
-    "prepare": "husky"
+    "prepare": "husky && npm run build"
   },
   "keywords": [
     "mcp",