@rencar-dev/feature-modules-public 1.2.0 → 1.2.2
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 +48 -0
- package/package.json +1 -11
package/README.md
CHANGED
|
@@ -43,6 +43,54 @@ npm run dev
|
|
|
43
43
|
npm run build
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
### 다른 프로젝트에서 테스트 (npm link)
|
|
47
|
+
|
|
48
|
+
패키지를 npm에 배포하지 않고 다른 프로젝트에서 실시간으로 테스트하려면:
|
|
49
|
+
|
|
50
|
+
**Step 1: 이 패키지에서 글로벌 링크 생성**
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm link
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Step 2: 다른 프로젝트에서 링크 연결**
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
cd your-project
|
|
60
|
+
npm link @rencar-dev/feature-modules-public
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Step 3: 연결 확인**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npm ls @rencar-dev/feature-modules-public
|
|
67
|
+
# 출력에 -> 심볼릭 링크 경로가 표시되면 성공
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Step 4: Next.js 프로젝트의 경우 추가 설정**
|
|
71
|
+
|
|
72
|
+
`next.config.js` (또는 `.mjs`)에 다음 설정 추가:
|
|
73
|
+
|
|
74
|
+
```javascript
|
|
75
|
+
webpack: (config, { isServer }) => {
|
|
76
|
+
// 심볼릭 링크 해결을 위한 설정
|
|
77
|
+
config.resolve.symlinks = false;
|
|
78
|
+
|
|
79
|
+
// ... 기존 webpack 설정 ...
|
|
80
|
+
return config;
|
|
81
|
+
},
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> **Note**: 설정 변경 후 `.next` 폴더를 삭제하고 dev 서버를 재시작하세요.
|
|
85
|
+
|
|
86
|
+
**테스트 완료 후 링크 해제:**
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
cd your-project
|
|
90
|
+
npm unlink @rencar-dev/feature-modules-public
|
|
91
|
+
npm install # 원래 패키지로 복원
|
|
92
|
+
```
|
|
93
|
+
|
|
46
94
|
### 새 모듈 추가하기
|
|
47
95
|
|
|
48
96
|
1. **폴더 생성**: `src/[모듈명]/` 폴더 생성
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rencar-dev/feature-modules-public",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Rencar feature modules - hooks, utils, and UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,21 +9,11 @@
|
|
|
9
9
|
"import": "./dist/hooks/index.js",
|
|
10
10
|
"require": "./dist/hooks/index.cjs"
|
|
11
11
|
},
|
|
12
|
-
"./dist/hooks": {
|
|
13
|
-
"types": "./dist/hooks/index.d.ts",
|
|
14
|
-
"import": "./dist/hooks/index.js",
|
|
15
|
-
"require": "./dist/hooks/index.cjs"
|
|
16
|
-
},
|
|
17
12
|
"./presence": {
|
|
18
13
|
"types": "./dist/presence/index.d.ts",
|
|
19
14
|
"import": "./dist/presence/index.js",
|
|
20
15
|
"require": "./dist/presence/index.cjs"
|
|
21
16
|
},
|
|
22
|
-
"./dist/presence": {
|
|
23
|
-
"types": "./dist/presence/index.d.ts",
|
|
24
|
-
"import": "./dist/presence/index.js",
|
|
25
|
-
"require": "./dist/presence/index.cjs"
|
|
26
|
-
},
|
|
27
17
|
"./presence/styles.css": "./dist/presence/styles.css"
|
|
28
18
|
},
|
|
29
19
|
"typesVersions": {
|