Skip to content

Commit 088b714

Browse files
zeakdclaude
andauthored
chore: 배포 전 정리 — tsconfig exclude + 주석 보완 (#142)
- tsconfig.json exclude에 **/__tests__/** 추가 (test-utils가 dist에 포함되던 문제) - TrafficLayer eslint-disable 주석에 interval deps 미포함 이유 명시 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent edcbfe8 commit 088b714

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

packages/react-naver-maps/src/traffic-layer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export function TrafficLayer({
3232
naver.maps.Event.clearInstanceListeners(layer);
3333
layer.setMap(null);
3434
};
35+
// interval은 생성자 옵션으로만 전달되므로 deps에 포함하지 않는다.
36+
// interval 변경 시 재생성이 필요하면 React key로 제어한다.
3537
// eslint-disable-next-line react-hooks/exhaustive-deps
3638
}, [navermaps, map]);
3739

packages/react-naver-maps/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@
1717
"skipLibCheck": true
1818
},
1919
"include": ["src"],
20-
"exclude": ["node_modules", "dist", "**/*.spec.*", "**/*.test.*"]
20+
"exclude": [
21+
"node_modules",
22+
"dist",
23+
"**/*.spec.*",
24+
"**/*.test.*",
25+
"**/__tests__/**"
26+
]
2127
}

0 commit comments

Comments
 (0)