0
0
Fork 0

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 <pkg>', 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.
This commit is contained in:
Karstein Phobic Nyvold Kvistad 2026-04-29 17:53:11 +02:00
parent c157267b20
commit 6ed62f1536
2 changed files with 5 additions and 6 deletions

7
package-lock.json generated
View file

@ -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"

View file

@ -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",