From 9096f7f7b417f3cc41b87f8fe531a7f7f5cacc33 Mon Sep 17 00:00:00 2001 From: SSFSKIM Date: Tue, 23 Jun 2026 05:13:12 +0900 Subject: [PATCH] build(app-server): auto-build on install (prepare) + executable bin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a prepare script so npm install builds dist/ automatically — dist/ is gitignored and there was no prepare, so a fresh clone had no dist/bin.js until a manual npm run build. Also chmod +x dist/bin.js in build: tsc emits it 0644, so any rebuild after npm link reverted the bin to non-executable (Permission denied). Together these make 'clone -> npm install -> npm link' produce a working cc-codex-appserver on PATH with no manual steps. --- CC-to-SDK/app-server/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CC-to-SDK/app-server/package.json b/CC-to-SDK/app-server/package.json index 74d4b42a5eaf..cdd951f56267 100644 --- a/CC-to-SDK/app-server/package.json +++ b/CC-to-SDK/app-server/package.json @@ -5,7 +5,8 @@ "bin": { "cc-codex-appserver": "dist/bin.js" }, "scripts": { "typecheck": "tsc --noEmit", - "build": "tsc -p tsconfig.build.json", + "build": "tsc -p tsconfig.build.json && chmod +x dist/bin.js", + "prepare": "npm run build", "test:unit": "vitest run test/unit", "test": "vitest run" },