From 0bfa3c46cc3e8276568c0ce5b7b3eb2905aa7ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20K=C3=B6nigs?= Date: Fri, 9 Oct 2026 09:41:40 +0200 Subject: [PATCH 1/2] Restore shebang of the CLI entry point The shebang was lost when the code was split into one class per command (c5176e4). When dev-server is installed from git or via npm link, the bin link points to dist/index.js and the shell executes it as a shell script: "import" starts ImageMagick's screenshot tool (looks like a hang) and line 2 fails with a syntax error. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01VbBXwNK1HEqo3JfpuhT6k9 --- CHANGELOG.md | 1 + dist/index.js | 1 + src/index.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78cdc201..ac517947 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ## **WORK IN PROGRESS** +- (Garfonso) Restore the shebang of the CLI entry point, the command failed when installed from git or via npm link - (@Apollon77/@copilot) **BREAKING:** Require Node.js >=20.19.0 <22.0.0 || >=22.13.0 (was >=16.0.0) - (oweitman/Apollon77) Update chokidar and express - (@Apollon77/@copilot) Switch from ts-node to @alcalzone/esbuild-register for TypeScript support to fix conflicts with Node.js experimental TypeScript features diff --git a/dist/index.js b/dist/index.js index cc224098..94e25286 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,3 @@ +#!/usr/bin/env node import { DevServer } from './DevServer.js'; (() => new DevServer())(); diff --git a/src/index.ts b/src/index.ts index 23b83801..84a33d70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { DevServer } from './DevServer.js'; (() => new DevServer())(); From 727c07f529c8614c550738e8234f6b712cfa7812 Mon Sep 17 00:00:00 2001 From: Garfonso Date: Fri, 9 Oct 2026 10:40:18 +0200 Subject: [PATCH 2/2] make index.js executable --- dist/index.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 dist/index.js diff --git a/dist/index.js b/dist/index.js old mode 100644 new mode 100755