From 13e6540cdf7a56c615dea505230ef1fa22596fdb Mon Sep 17 00:00:00 2001 From: kim Date: Thu, 10 Sep 2026 15:31:50 +0900 Subject: [PATCH] chore: allow esbuild@0.28.1 install script, note dep constraints tsx 4.23.13 pulls its own esbuild 0.28.1; allowScripts only listed 0.27.2 (tsup/vite), so npm warned about the blocked postinstall. Also records the marked<16 / typescript-7 / wrap-ansi-10 constraints in the memo so a future upgrade pass doesn't have to rediscover them. Co-Authored-By: Claude Sonnet 5 --- locode-upgrade-memo.md | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/locode-upgrade-memo.md b/locode-upgrade-memo.md index 5f7b5d9..3920ba5 100644 --- a/locode-upgrade-memo.md +++ b/locode-upgrade-memo.md @@ -80,6 +80,12 @@ --- +## 의존성 제약 +- **marked는 15에 고정**. `marked-terminal@7.3.0`의 peer가 `marked >=1 <16`이고 marked-terminal 업데이트가 없음. marked 16+로 올리려면 marked-terminal을 교체하거나 peer를 강제해야 함. +- **typescript는 7.x (네이티브 컴파일러 포팅)**. 프로젝트는 `tsc` CLI로 타입체크만 하고 programmatic API를 안 씀 → 네이티브 포트로 안전하게 이전. 빌드는 tsup/esbuild라 tsc와 무관. 플랫폼별 `@typescript/typescript-*` 바이너리가 optional dep으로 붙음. +- **wrap-ansi는 10.x (ink와 동일)**. `renderMarkdown`이 히스토리 출력을 터미널 폭으로 하드랩할 때 사용 — ink 내부 래핑과 같은 string-width v8을 공유해야 폭 계산이 어긋나지 않음. v10은 타입 내장(앰비언트 선언 불필요). +- `allowScripts`에 트리에 실제로 존재하는 esbuild 버전을 모두 나열해야 함 (현재 `0.27.2` = tsup/vite, `0.28.1` = tsx). 빠지면 postinstall 경고. + ## TODO - LSP 실서버 통합 테스트 (실제 tsserver/pyright 띄워서 검증) - task store 영속화 (세션에 task 저장) \ No newline at end of file diff --git a/package.json b/package.json index 0e52161..5a359a8 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "vitest": "^5.0.0" }, "allowScripts": { - "esbuild@0.27.2": true + "esbuild@0.27.2": true, + "esbuild@0.28.1": true } }