mirror of
https://github.com/cjo4m06/mcp-shrimp-task-manager.git
synced 2025-07-27 00:12:26 +08:00
13 lines
368 B
JavaScript
13 lines
368 B
JavaScript
import fs from "fs";
|
||
const filePath = "./dist/index.js";
|
||
const shebang = "#!/usr/bin/env node\n";
|
||
|
||
let content = fs.readFileSync(filePath, "utf8");
|
||
if (!content.startsWith(shebang)) {
|
||
content = shebang + content;
|
||
fs.writeFileSync(filePath, content);
|
||
console.log("✅ Shebang added to dist/index.js");
|
||
} else {
|
||
console.log("ℹ️ Shebang already present.");
|
||
}
|