@ghl-ai/aw 0.1.34-beta.21 → 0.1.34-beta.23
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/link.mjs +1 -13
- package/package.json +1 -1
package/link.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// link.mjs — Create symlinks from IDE dirs → .aw_registry/
|
|
2
2
|
|
|
3
|
-
import { existsSync, lstatSync, mkdirSync, readdirSync, unlinkSync, symlinkSync, rmdirSync
|
|
3
|
+
import { existsSync, lstatSync, mkdirSync, readdirSync, unlinkSync, symlinkSync, rmdirSync } from 'node:fs';
|
|
4
4
|
import { join, relative } from 'node:path';
|
|
5
5
|
import { homedir } from 'node:os';
|
|
6
6
|
import * as fmt from './fmt.mjs';
|
|
@@ -250,19 +250,7 @@ export function linkWorkspace(cwd) {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
// Touch IDE dirs so the file watcher picks up symlink changes
|
|
254
253
|
if (created > 0) {
|
|
255
|
-
const now = new Date();
|
|
256
|
-
for (const ide of IDE_DIRS) {
|
|
257
|
-
const ideDir = join(cwd, ide);
|
|
258
|
-
if (!existsSync(ideDir)) continue;
|
|
259
|
-
try {
|
|
260
|
-
utimesSync(ideDir, now, now);
|
|
261
|
-
for (const sub of readdirSync(ideDir, { withFileTypes: true })) {
|
|
262
|
-
if (sub.isDirectory()) utimesSync(join(ideDir, sub.name), now, now);
|
|
263
|
-
}
|
|
264
|
-
} catch { /* best effort */ }
|
|
265
|
-
}
|
|
266
254
|
fmt.logSuccess(`Linked ${created} IDE symlink${created > 1 ? 's' : ''}`);
|
|
267
255
|
}
|
|
268
256
|
|