relayax-cli 0.3.61 → 0.3.62
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/dist/commands/package.js +10 -4
- package/package.json +1 -1
package/dist/commands/package.js
CHANGED
|
@@ -213,12 +213,18 @@ function syncContentsToRelay(contents, contentsDiff, relayDir, projectPath) {
|
|
|
213
213
|
continue;
|
|
214
214
|
const absFrom = resolveFromPath(content.from, projectPath);
|
|
215
215
|
const relaySubPath = deriveRelaySubPath(content);
|
|
216
|
-
const
|
|
217
|
-
//
|
|
216
|
+
const relayTarget = path_1.default.join(relayDir, relaySubPath);
|
|
217
|
+
// 단일 파일인 경우 직접 복사 (디렉토리 기반 diff/sync 불필요)
|
|
218
|
+
if (fs_1.default.existsSync(absFrom) && fs_1.default.statSync(absFrom).isFile()) {
|
|
219
|
+
fs_1.default.mkdirSync(path_1.default.dirname(relayTarget), { recursive: true });
|
|
220
|
+
fs_1.default.copyFileSync(absFrom, relayTarget);
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
// 디렉토리인 경우 diff 기반 동기화
|
|
218
224
|
const sourceFiles = scanPath(absFrom);
|
|
219
|
-
const relayFiles = scanPath(
|
|
225
|
+
const relayFiles = scanPath(relayTarget);
|
|
220
226
|
const fileDiff = computeDiff(sourceFiles, relayFiles);
|
|
221
|
-
syncToRelay(absFrom,
|
|
227
|
+
syncToRelay(absFrom, relayTarget, fileDiff);
|
|
222
228
|
}
|
|
223
229
|
}
|
|
224
230
|
// ─── Global Agent Home ───
|