Skip to main content

package-architect

Design and maintain TypeScript packages in a monorepo, including exports and build configuration. Use when creating or restructuring monorepo packages, defining package.json exports, or setting up tsconfig references.

소스 정보

저장소
shipshitdev/shipcode
최근 소스 활동
2026년 7월 10일 11:20
감지된 SKILL.md 언어
영어
스타
7
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
package-architect
description
Design and maintain TypeScript packages in a monorepo, including exports and build configuration. Use when creating or restructuring monorepo packages, defining package.json exports, or setting up tsconfig references.
metadata
{"version":"1.0.0","tags":"packages, monorepo, typescript"}
# Package Architect Design reusable TypeScript packages in monorepos (Bun, pnpm, or npm workspaces). ## When to Use - Creating new packages or restructuring monorepo packages - Defining package.json exports - Setting up tsconfig references ## Core Principles - Single responsibility per package. - Stable public APIs with clear exports. - Avoid inline interfaces; centralize types. - Keep build outputs separated from sources. ## Package Structure (Example) ``` packages/ utils/ src/ package.json tsconfig.json api-client/ src/ package.json tsconfig.json ``` ## Exports Pattern (Example) ```json { "name": "@scope/utils", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } } } ``` ## TypeScript References - Use project references for inter-package dependencies. - Prefer path aliases for local dev imports. - Keep tsconfig base shared across packages. ## Checklist - Exports map matches intended public API - Types build alongside JS output - No circular dependencies - Consistent lint and tsconfig settings
GitHub에서 보기