sonance-brand-mcp 1.3.18 → 1.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +15 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import * as fs from "fs";
6
6
  import * as path from "path";
7
7
  import * as os from "os";
8
8
  import { fileURLToPath } from "url";
9
+ import { execSync } from "child_process";
9
10
  // ============================================
10
11
  // INSTALLER (--init flag)
11
12
  // ============================================
@@ -721,6 +722,20 @@ function runDevToolsInstaller() {
721
722
  else {
722
723
  manualSteps.push("layout.tsx not found - add to your layout:\n import { SonanceDevTools } from '[path-to]/src/components/dev-tools';\n {process.env.NODE_ENV === 'development' && <SonanceDevTools />}\n (adjust the path based on your layout file location)");
723
724
  }
725
+ // --- Install required npm dependencies ---
726
+ console.log("");
727
+ console.log(" 📦 Installing dependencies...");
728
+ try {
729
+ execSync("npm install html2canvas-pro lucide-react", {
730
+ cwd: targetDir,
731
+ stdio: "pipe"
732
+ });
733
+ console.log(" ✓ Installed html2canvas-pro lucide-react");
734
+ }
735
+ catch (err) {
736
+ console.log(" ⚠️ Could not auto-install dependencies. Run manually:");
737
+ console.log(" npm install html2canvas-pro lucide-react");
738
+ }
724
739
  // --- Output results ---
725
740
  console.log("");
726
741
  console.log(" ✅ Sonance DevTools installed successfully!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",