@wipcomputer/wip-ldm-os 0.4.69 → 0.4.70
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/SKILL.md +1 -1
- package/lib/deploy.mjs +10 -10
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ license: MIT
|
|
|
9
9
|
compatibility: Requires git, npm, node. Node.js 18+.
|
|
10
10
|
metadata:
|
|
11
11
|
display-name: "LDM OS"
|
|
12
|
-
version: "0.4.
|
|
12
|
+
version: "0.4.70"
|
|
13
13
|
homepage: "https://github.com/wipcomputer/wip-ldm-os"
|
|
14
14
|
author: "Parker Todd Brooks"
|
|
15
15
|
category: infrastructure
|
package/lib/deploy.mjs
CHANGED
|
@@ -240,17 +240,17 @@ function resolveLocalDeps(repoPath) {
|
|
|
240
240
|
const extDir = join(LDM_EXTENSIONS, name);
|
|
241
241
|
if (existsSync(extDir)) {
|
|
242
242
|
const targetModules = join(repoPath, 'node_modules', name);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
mkdirSync(scopeDir, { recursive: true });
|
|
249
|
-
}
|
|
250
|
-
symlinkSync(extDir, targetModules);
|
|
251
|
-
log(`Linked local dep: ${name} -> ${extDir}`);
|
|
252
|
-
resolved++;
|
|
243
|
+
mkdirSync(join(repoPath, 'node_modules'), { recursive: true });
|
|
244
|
+
// Handle scoped packages (e.g. @scope/name)
|
|
245
|
+
const scopeDir = dirname(targetModules);
|
|
246
|
+
if (scopeDir !== join(repoPath, 'node_modules')) {
|
|
247
|
+
mkdirSync(scopeDir, { recursive: true });
|
|
253
248
|
}
|
|
249
|
+
// Remove existing entry (broken symlink or dir from npm) before creating fresh symlink
|
|
250
|
+
try { rmSync(targetModules, { recursive: true, force: true }); } catch {}
|
|
251
|
+
symlinkSync(extDir, targetModules);
|
|
252
|
+
log(`Linked local dep: ${name} -> ${extDir}`);
|
|
253
|
+
resolved++;
|
|
254
254
|
} else {
|
|
255
255
|
log(`Dep ${name} not installed at ${extDir}, build may fail for this feature`);
|
|
256
256
|
}
|