261117_02_ENH: 생성 프로젝트 @types/node를 Node 24 기준으로 고정

This commit is contained in:
2026-11-17 10:15:07 +09:00
parent 0701d0d75d
commit 868a2d5b04
2 changed files with 4 additions and 2 deletions

View File

@@ -83,5 +83,6 @@ UI Registry: `https://ui-registry.kric.com/r`
- 의존성은 `latest`를 그대로 기록하지 않고, 설치 시점에 해석된 실제 버전 범위(예: `^19.2.1`)로 기록합니다. `--skip-install`로 생성하면 설치 전이므로 spec(`latest` 등)이 그대로 남습니다. - 의존성은 `latest`를 그대로 기록하지 않고, 설치 시점에 해석된 실제 버전 범위(예: `^19.2.1`)로 기록합니다. `--skip-install`로 생성하면 설치 전이므로 spec(`latest` 등)이 그대로 남습니다.
- `@kri/common`은 프로젝트 생성 시점의 최신 버전을 설치하고 exact 버전으로 기록합니다. - `@kri/common`은 프로젝트 생성 시점의 최신 버전을 설치하고 exact 버전으로 기록합니다.
- `cn`은 `@kri/common`이 의존하는 버전을 읽어 같은 exact 버전으로 설치합니다. shadcn 기본 컴포넌트와 `@kri/common/ui`가 같은 `cn`을 사용해 중복 설치되지 않습니다. - `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`을 사용합니다. - shadcn 기본 컴포넌트가 사용하는 `class-variance-authority`, `lucide-react`를 기본 의존성에 포함합니다. 클래스 병합은 `clsx`·`tailwind-merge` 대신 `cn`을 사용합니다.

View File

@@ -26,7 +26,8 @@ const DEPENDENCY_SPECS: Record<string, string> = {
const DEV_DEPENDENCY_SPECS: Record<string, string> = { const DEV_DEPENDENCY_SPECS: Record<string, string> = {
"@tailwindcss/postcss": "latest", "@tailwindcss/postcss": "latest",
"@types/node": "latest", // 배포 서버 Node 메이저(24)에 맞춘다. 서버에 없는 API 사용을 타입 검사에서 잡기 위함.
"@types/node": "24",
"@types/react": "latest", "@types/react": "latest",
"@types/react-dom": "latest", "@types/react-dom": "latest",
"babel-plugin-react-compiler": "latest", "babel-plugin-react-compiler": "latest",