From 6ed62f15361720b9067d3fb3002f0331d54d000a Mon Sep 17 00:00:00 2001 From: Karstein Phobic Nyvold Kvistad Date: Wed, 29 Apr 2026 17:53:11 +0200 Subject: [PATCH] fix(deps): move 'diff' from devDependencies to dependencies (v0.9.1) The TUI subpackage imports 'diff' at runtime (computeHunks in src/tui/shared/diff.ts), so a global install via 'npm install -g' was breaking with: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'diff' imported from .../dist/tui/shared/diff.js devDependencies are not installed by 'npm install -g ', only 'dependencies' are. Move 'diff' to the right section. This bug shipped silently in 0.5.0 onwards because the source-build flow during dev install everything, masking it. First reproduces when a user does a fresh global install -- which is the only flow the published package should support. Bumps to 0.9.1; tag + republish required to fix the live install. --- package-lock.json | 7 +++---- package.json | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 344efac..366dc07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,17 @@ { "name": "codesys-mcp-sp21-plus", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codesys-mcp-sp21-plus", - "version": "0.9.0", + "version": "0.9.1", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "commander": "^11.1.0", + "diff": "^5.2.2", "ink": "^5.2.1", "react": "^18.3.1", "ssh2": "^1.17.0", @@ -27,7 +28,6 @@ "@types/react": "^18.3.28", "@types/ssh2": "^1.15.5", "@types/uuid": "^9.0.0", - "diff": "^5.2.2", "ink-testing-library": "^4.0.0", "tsx": "^4.21.0", "typescript": "^5.5.3", @@ -1660,7 +1660,6 @@ "version": "5.2.2", "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.2.tgz", "integrity": "sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" diff --git a/package.json b/package.json index 61d3097..c8453a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codesys-mcp-sp21-plus", - "version": "0.9.0", + "version": "0.9.1", "description": "Codesys-MCP-SP21+ -- fork of luke-harriman/Codesys-MCP carrying CODESYS V3.5 SP22 Patch 1 fixes (and forward-compat with later SPs): script-engine API drift, online/runtime tool auto-login, dual-SHA release classifier, set_pou_code omitted-decl wipe fix, add_library managed-overload, etc. MCP server for CODESYS with persistent UI instance and file-based IPC.", "main": "dist/server.js", "bin": { @@ -41,6 +41,7 @@ "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "commander": "^11.1.0", + "diff": "^5.2.2", "ink": "^5.2.1", "react": "^18.3.1", "ssh2": "^1.17.0", @@ -53,7 +54,6 @@ "@types/react": "^18.3.28", "@types/ssh2": "^1.15.5", "@types/uuid": "^9.0.0", - "diff": "^5.2.2", "ink-testing-library": "^4.0.0", "tsx": "^4.21.0", "typescript": "^5.5.3",