@wipcomputer/wip-ldm-os 0.4.68 → 0.4.69
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 -6
- 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.69"
|
|
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
|
@@ -277,15 +277,19 @@ function runBuildIfNeeded(repoPath) {
|
|
|
277
277
|
} else if (hasBuildScript) {
|
|
278
278
|
log(`Building ${pkg.name || basename(repoPath)}...`);
|
|
279
279
|
try {
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
// depend on file:../dream-weaver-protocol-private (sibling doesn't exist in clones).
|
|
283
|
-
resolveLocalDeps(repoPath);
|
|
284
|
-
|
|
285
|
-
// Install deps first if node_modules is missing
|
|
280
|
+
// 1. Install deps first (gets devDependencies like tsup).
|
|
281
|
+
// npm may warn about unresolvable file: deps but still installs the rest.
|
|
286
282
|
if (!existsSync(join(repoPath, 'node_modules'))) {
|
|
287
283
|
execSync('npm install', { cwd: repoPath, stdio: 'pipe' });
|
|
288
284
|
}
|
|
285
|
+
|
|
286
|
+
// 2. Resolve file: deps from local LDM extensions AFTER npm install.
|
|
287
|
+
// npm install can remove or overwrite symlinks, so this must run second.
|
|
288
|
+
// Without this, repos like memory-crystal that depend on
|
|
289
|
+
// file:../dream-weaver-protocol-private fail to build (sibling doesn't exist in clones).
|
|
290
|
+
resolveLocalDeps(repoPath);
|
|
291
|
+
|
|
292
|
+
// 3. Build.
|
|
289
293
|
execSync('npm run build', { cwd: repoPath, stdio: 'pipe' });
|
|
290
294
|
ok(`Build complete`);
|
|
291
295
|
} catch (e) {
|