@playcraft/build 0.1.10 → 0.1.12
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.
|
@@ -282,6 +282,12 @@ export class GenericAdapter {
|
|
|
282
282
|
const entries = await fs.readdir(src, { withFileTypes: true });
|
|
283
283
|
for (const entry of entries) {
|
|
284
284
|
const srcPath = path.join(src, entry.name);
|
|
285
|
+
if (entry.name === '.playcraft.json')
|
|
286
|
+
continue;
|
|
287
|
+
if (path.basename(src) === '.playcraft' && ['skills', 'skill-artifacts'].includes(entry.name))
|
|
288
|
+
continue;
|
|
289
|
+
if (entry.name === 'user_uploads' && path.basename(src) === '.tmp')
|
|
290
|
+
continue;
|
|
285
291
|
const destPath = path.join(dest, entry.name);
|
|
286
292
|
// 安全检查:确保目标路径在输出目录内
|
|
287
293
|
const resolvedDest = path.resolve(destPath);
|