Skip to content

Commit 4b05679

Browse files
committed
fix: GitHub Actions type-check 오류 해결
- carousel 패키지에 CSS 모듈 타입 선언 추가 - pr-check.yml에 CSS 파일 복사 단계 추가 - type-check 단계에 디버깅 정보 추가
1 parent 1cb22fb commit 4b05679

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ jobs:
6161
pnpm --filter @watcha/carousel build
6262
echo "carousel 빌드 완료!"
6363
64+
# CSS 파일 복사 (TypeScript가 복사하지 않는 경우)
65+
if [ -d "packages/carousel/src/styles" ]; then
66+
echo "=== CSS 파일 복사 ==="
67+
mkdir -p packages/carousel/dist/src/styles
68+
cp -r packages/carousel/src/styles/* packages/carousel/dist/src/styles/ || echo "CSS 파일 복사 실패"
69+
fi
70+
6471
# 빌드 결과 확인
6572
echo "carousel 빌드 결과 확인:"
6673
ls -la packages/carousel/dist/ || echo "ERROR: carousel dist 디렉토리가 생성되지 않음!"
@@ -80,6 +87,12 @@ jobs:
8087
- name: Run type check
8188
run: |
8289
echo "=== 타입 체크 실행 ==="
90+
echo "현재 작업 디렉토리: $(pwd)"
91+
echo "carousel dist 디렉토리 확인:"
92+
ls -la packages/carousel/dist/ || echo "carousel dist 디렉토리가 없음"
93+
echo "CSS 파일 확인:"
94+
ls -la packages/carousel/dist/src/styles/ || echo "CSS 파일이 없음"
95+
echo "type-check 실행 중..."
8396
pnpm type-check
8497
echo "타입 체크 완료!"
8598
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '*.css' {
2+
const content: string;
3+
export default content;
4+
}

0 commit comments

Comments
 (0)