MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / runProjectRootCommand

Function runProjectRootCommand

packages/release/src/index.js:42–59  ·  view source on GitHub ↗
(command, force)

Source from the content-addressed store, hash-verified

40};
41
42const runProjectRootCommand = (command, force) => {
43 if (isDryRun && !force) {
44 console.log(`[Dry Run] Command: ${command}`);
45 return "[Dry Run] Command executed.";
46 } else {
47 try {
48 const output = execSync(`cd ${PROJECT_ROOT} && ${command}`, {
49 stdio: "pipe",
50 }).toString();
51 return output;
52 } catch (error) {
53 console.error(`Error executing command ${command}`);
54 console.error(error);
55 process.exit(1);
56 }
57 }
58 return undefined;
59};
60
61const checkBranchSync = () => {
62 if (noSyncCheck) {

Callers 5

checkBranchSyncFunction · 0.85
installDependenciesFunction · 0.85
buildProjectFunction · 0.85
deployFrontendFunction · 0.85
mainFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected