79031da543
Spell checking / Report (Push) (push) Blocked by required conditions
Spell checking / Report (PR) (push) Blocked by required conditions
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Publish Dev Docs Website / build (push) Failing after 1s
Publish Dev Docs Website / deploy (push) Has been skipped
14 lines
391 B
JavaScript
14 lines
391 B
JavaScript
import { existsSync } from "fs";
|
|
import { execSync } from "child_process";
|
|
import { fileURLToPath } from "url";
|
|
import { dirname } from "path";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
process.chdir(__dirname);
|
|
|
|
if (!existsSync("node_modules")) {
|
|
console.log("[MCP] Installing dependencies...");
|
|
execSync("npm install", { stdio: "inherit" });
|
|
}
|
|
|
|
import("./server.js"); |