From dc4d4a64e20d2b2dad43d5d2c53bf31fb37aebef Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Feb 2026 16:02:18 +0000 Subject: [PATCH 1/2] fix: add bin field to enable npx ember-mug execution The root package was missing a bin field, causing "could not determine executable to run" error when using npx ember-mug@latest. Added bin pointing to CLI dist, files array for proper publishing, and prepublishOnly script to ensure build runs before publish. https://claude.ai/code/session_01A8K3oZvEHae1GxAvdhUrp1 --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2d4805c..8866987 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,13 @@ "type": "git", "url": "https://github.com/singerbj/ember-mug" }, + "bin": { + "ember-mug": "apps/cli/dist/cli.js" + }, + "files": [ + "apps/cli/dist", + "apps/cli/package.json" + ], "workspaces": [ "apps/*" ], @@ -12,7 +19,8 @@ "build": "turbo run build", "dev": "turbo run dev", "lint": "turbo run lint", - "clean": "turbo run clean" + "clean": "turbo run clean", + "prepublishOnly": "npm run build" }, "devDependencies": { "turbo": "^2.3.0" From cd0fbfb76f0e4f12cabfcd16dc82afd938f4c101 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Feb 2026 16:05:40 +0000 Subject: [PATCH 2/2] fix: add runtime dependencies for npx ember-mug to work The root package was missing the CLI runtime dependencies, causing npm to install only 1 package with no dependencies. Added all CLI dependencies (ink, react, chalk, @stoprocent/noble, etc.) to the root package.json so they're installed when users run npm install -g ember-mug. Also added type: module, description, and engines fields to match the CLI package configuration. https://claude.ai/code/session_01A8K3oZvEHae1GxAvdhUrp1 --- package-lock.json | 3 +++ package.json | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index acdb9c2..250def5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,9 @@ "workspaces": [ "apps/*" ], + "bin": { + "ember-mug": "apps/cli/dist/cli.js" + }, "devDependencies": { "turbo": "^2.3.0" } diff --git a/package.json b/package.json index 8866987..4b5a5f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,8 @@ { "name": "ember-mug", "version": "1.1.4", + "description": "A CLI app for controlling Ember mugs via Bluetooth", + "type": "module", "repository": { "type": "git", "url": "https://github.com/singerbj/ember-mug" @@ -9,8 +11,7 @@ "ember-mug": "apps/cli/dist/cli.js" }, "files": [ - "apps/cli/dist", - "apps/cli/package.json" + "apps/cli/dist" ], "workspaces": [ "apps/*" @@ -22,8 +23,21 @@ "clean": "turbo run clean", "prepublishOnly": "npm run build" }, + "dependencies": { + "@stoprocent/noble": "^2.3.10", + "chalk": "^5.3.0", + "conf": "^12.0.0", + "ink": "^5.0.1", + "ink-select-input": "^6.0.0", + "ink-spinner": "^5.0.0", + "ink-text-input": "^6.0.0", + "react": "^18.3.1" + }, "devDependencies": { "turbo": "^2.3.0" }, + "engines": { + "node": ">=18.0.0" + }, "packageManager": "npm@10.2.0" }