principles-disciple 1.57.0 → 1.58.0
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/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/sync-plugin.mjs +12 -1
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/scripts/sync-plugin.mjs
CHANGED
|
@@ -644,11 +644,22 @@ function injectLocalWorkspacePackages() {
|
|
|
644
644
|
console.log(' 📦 Injecting local workspace packages (@principles/core)...');
|
|
645
645
|
mkdirSync(dirname(targetModules), { recursive: true });
|
|
646
646
|
// cpSync creates symlinks on Windows for symlinked dirs — use cp -rL (dereference) via exec
|
|
647
|
+
let injected = false;
|
|
647
648
|
try {
|
|
648
649
|
execSync(`cp -rL "${monorepoModules}" "${targetModules}"`, { stdio: 'ignore' });
|
|
650
|
+
injected = true;
|
|
649
651
|
} catch {
|
|
650
652
|
// Fallback: manual copy via node (Windows-compatible)
|
|
651
|
-
|
|
653
|
+
try {
|
|
654
|
+
copyDir(monorepoModules, targetModules);
|
|
655
|
+
injected = true;
|
|
656
|
+
} catch (copyErr) {
|
|
657
|
+
console.warn(' ⚠️ Failed to inject @principles/core from monorepo: ' + copyErr.message);
|
|
658
|
+
console.warn(' ⚠️ npm install --production may fail if @principles/core is not published');
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
if (injected && !existsSync(targetModules)) {
|
|
662
|
+
console.warn(' ⚠️ Injection reported success but target not found: ' + targetModules);
|
|
652
663
|
}
|
|
653
664
|
}
|
|
654
665
|
|