@innvoaid/icons 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/index.d.ts +829 -0
- package/dist/index.js +15039 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -3
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @innvoaid/icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Dentlink 아이콘 React 컴포넌트.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { SvgSignCheck, type IconType } from "@innvoaid/icons";
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 디렉터리
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
assets/ SVG 원천. 아이콘 추가/변경은 여기서만 한다.
|
|
13
|
+
generated/ svgr 출력 (*.tsx, index.ts, icon-type.ts). 자동 생성·커밋 대상, 손으로 고치지 않는다.
|
|
14
|
+
src/index.ts 패키지 진입점. generated를 재수출하고 IconType을 노출한다.
|
|
15
|
+
dist/ tsup 빌드 결과 (ESM + d.ts). gitignore, 배포 artifact에만 쓰인다.
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`package.json`의 `main: dist/index.js`는 publish 전용이다. 워크스페이스에서는 `exports`/`types`가 `src/index.ts`를 가리켜 소스를 직접 해석한다.
|
|
19
|
+
|
|
20
|
+
- SVG를 추가/변경한 뒤 루트에서 `pnpm generate:icons`를 실행하고 `generated/` 변경을 함께 커밋한다.
|
|
21
|
+
- 워크스페이스 안에서는 `@innvoaid/icons/generated/<Name>` 딥 import가 가능하지만, 앱 코드는 공통 `<Icon />`을 쓴다.
|
|
22
|
+
- 배포 artifact는 패키지 루트 export만 제공한다. 배포 계약은 [docs/packages.md](../../docs/packages.md) 참고.
|