0
0
Fork 0
Codesys-MCP-SP21-plus/src
Karstein Phobic Nyvold Kvistad 1639741cdd fix(postinstall): banner now actually prints on real installs (npm 11+ compat)
npm 11 stopped setting npm_config_global=true, so the previous guard
`process.env.npm_config_global !== 'true'` always evaluated true and
the banner was silently skipped on every install -- including the
`npm install -g` case it was supposed to handle.

Replace the global-detection (which is unreliable across npm versions)
with a positive dev-clone detector: only skip if INIT_CWD points at a
checkout of this very package (matched by package.json name). Also
keep the CI skip (CI=true / npm_config_ci=true).

Verified all three paths:
- Real install (no INIT_CWD or INIT_CWD outside repo): banner prints
- Dev clone (INIT_CWD = this repo): silent
- CI: silent
2026-04-27 20:37:28 +02:00
..
scripts fix(read_running_version_online): document the real root cause + fix 2026-04-26 20:13:25 +02:00
bin.ts feat(cli): --print-config emits ready-to-paste .mcp.json for every detected install 2026-04-27 20:22:15 +02:00
detect.ts feat(cli): --print-config emits ready-to-paste .mcp.json for every detected install 2026-04-27 20:22:15 +02:00
headless.ts Initial release: MCP server for CODESYS with persistent UI instance 2026-02-08 18:59:16 +10:00
ipc.ts Initial release: MCP server for CODESYS with persistent UI instance 2026-02-08 18:59:16 +10:00
launcher.ts rename: Codesys-MCP-SP22+ -> Codesys-MCP-SP21+ + multi-install README + missing tools 2026-04-26 22:02:46 +02:00
logger.ts Initial release: MCP server for CODESYS with persistent UI instance 2026-02-08 18:59:16 +10:00
postinstall.ts fix(postinstall): banner now actually prints on real installs (npm 11+ compat) 2026-04-27 20:37:28 +02:00
script-manager.ts fix(create_folder): try project.create_folder(name, SV_POU) first; drop ScriptManager cache 2026-04-26 17:16:44 +02:00
server.ts fix: drop dead sp21-plus-migration-notes branch refs from generated md + smoke-test doc 2026-04-26 22:56:43 +02:00
types.ts rename: Codesys-MCP-SP22+ -> Codesys-MCP-SP21+ + multi-install README + missing tools 2026-04-26 22:02:46 +02:00