Skip to content

Commit 1420427

Browse files
final cleanup
1 parent 83616ac commit 1420427

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

scripts/check-replay-stubs.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,6 @@ const createSectionWarning = (title, content, icon = "🤖") => {
66
return `### ${icon} ${title}\n\n${content}\n`;
77
};
88

9-
10-
function whichExists(package) {
11-
try {
12-
execSync(`which ${package}`, { stdio: 'ignore' });
13-
console.log(`${package} exists`);
14-
return true;
15-
} catch (error) {
16-
return false;
17-
}
18-
}
19-
20-
function getMissingPackages() {
21-
console.log(`Checking required packages...`);
22-
23-
const missingPackages = ['curl', 'unzip', 'java'].filter(pkg => !whichExists(pkg));
24-
25-
if (missingPackages.length === 0) {
26-
console.log('All required packages are already available');
27-
return;
28-
}
29-
return missingPackages.join(', ');
30-
}
31-
329
function validatePath(dirPath) {
3310
const resolved = path.resolve(dirPath);
3411
const cwd = process.cwd();
@@ -125,14 +102,6 @@ module.exports = async function ({ fail, warn, __, ___, danger }) {
125102
return;
126103
}
127104

128-
// Required software for running this function.
129-
/* if (getMissingPackages()?.length > 0) {
130-
console.log(`Missing packages: ${getMissingPackages()}`);
131-
fail(`Can't run replay stubs check because some packages are missing. Please install them and try again.`);
132-
return;
133-
}
134-
*/
135-
136105
console.log("Running replay stubs check...");
137106

138107
const jsDist = validatePath(path.join(process.cwd(), "js-dist"));

0 commit comments

Comments
 (0)