Skip to content

Commit 3351786

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/review-mcp-sampling-CkbHh
2 parents 6f9172b + 739c0e0 commit 3351786

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/link-self.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
* so examples always type-check against the latest local types.
66
* See: https://github.com/npm/feedback/discussions/774
77
*/
8-
import { cpSync, existsSync } from "fs";
8+
import { cpSync, existsSync, lstatSync } from "fs";
99

1010
const target = "node_modules/@modelcontextprotocol/ext-apps";
1111
if (!existsSync(target)) process.exit(0);
12+
// If target is a symlink (e.g. to the repo root), dist is already current.
13+
if (lstatSync(target).isSymbolicLink()) process.exit(0);
1214

1315
cpSync("dist", `${target}/dist`, { recursive: true });
1416
cpSync("package.json", `${target}/package.json`);

0 commit comments

Comments
 (0)