From 868a2d5b04c19f249ce62fb128ef34514b509589 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Tue, 17 Nov 2026 10:15:07 +0900 Subject: [PATCH] =?UTF-8?q?261117=5F02=5FENH:=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20@types/node=EB=A5=BC=20N?= =?UTF-8?q?ode=2024=20=EA=B8=B0=EC=A4=80=EC=9C=BC=EB=A1=9C=20=EA=B3=A0?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- src/create-project.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1dfdaec..1dd27b0 100644 --- a/README.md +++ b/README.md @@ -83,5 +83,6 @@ UI Registry: `https://ui-registry.kric.com/r` - 의존성은 `latest`를 그대로 기록하지 않고, 설치 시점에 해석된 실제 버전 범위(예: `^19.2.1`)로 기록합니다. `--skip-install`로 생성하면 설치 전이므로 spec(`latest` 등)이 그대로 남습니다. - `@kri/common`은 프로젝트 생성 시점의 최신 버전을 설치하고 exact 버전으로 기록합니다. - `cn`은 `@kri/common`이 의존하는 버전을 읽어 같은 exact 버전으로 설치합니다. shadcn 기본 컴포넌트와 `@kri/common/ui`가 같은 `cn`을 사용해 중복 설치되지 않습니다. -- Next.js 생태계 호환성을 위해 생성 프로젝트의 TypeScript는 최신 5.x, ESLint는 최신 9.x를 사용합니다. +- Next.js 생태계 호환성을 위해 생성 프로젝트의 TypeScript는 최신 5.x, ESLint는 최신 9.x를 사용합니다. `eslint-config-next`에 포함된 일부 플러그인이 ESLint 10을 지원하지 않아 9.x를 유지합니다. +- `@types/node`는 배포 서버 Node 메이저(24)에 맞춰 최신 24.x를 사용합니다. - shadcn 기본 컴포넌트가 사용하는 `class-variance-authority`, `lucide-react`를 기본 의존성에 포함합니다. 클래스 병합은 `clsx`·`tailwind-merge` 대신 `cn`을 사용합니다. diff --git a/src/create-project.ts b/src/create-project.ts index d45c491..7c2fa53 100644 --- a/src/create-project.ts +++ b/src/create-project.ts @@ -26,7 +26,8 @@ const DEPENDENCY_SPECS: Record = { const DEV_DEPENDENCY_SPECS: Record = { "@tailwindcss/postcss": "latest", - "@types/node": "latest", + // 배포 서버 Node 메이저(24)에 맞춘다. 서버에 없는 API 사용을 타입 검사에서 잡기 위함. + "@types/node": "24", "@types/react": "latest", "@types/react-dom": "latest", "babel-plugin-react-compiler": "latest",