()
| 152 | }; |
| 153 | |
| 154 | const checkUncommittedChanges = () => { |
| 155 | console.log("Checking uncommitted changes..."); |
| 156 | const status = execSync("git status --porcelain").toString().trim(); |
| 157 | |
| 158 | if (status && !isDryRun) { |
| 159 | console.error( |
| 160 | "You have uncommitted changes. Please commit or stash them before proceeding.", |
| 161 | ); |
| 162 | process.exit(1); |
| 163 | } |
| 164 | }; |
| 165 | |
| 166 | const installDependencies = () => { |
| 167 | console.log("Installing dependencies..."); |