@@ -6,29 +6,6 @@ const createSectionWarning = (title, content, icon = "🤖") => {
6
6
return `### ${ icon } ${ title } \n\n${ content } \n` ;
7
7
} ;
8
8
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
-
32
9
function validatePath ( dirPath ) {
33
10
const resolved = path . resolve ( dirPath ) ;
34
11
const cwd = process . cwd ( ) ;
@@ -125,14 +102,6 @@ module.exports = async function ({ fail, warn, __, ___, danger }) {
125
102
return ;
126
103
}
127
104
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
-
136
105
console . log ( "Running replay stubs check..." ) ;
137
106
138
107
const jsDist = validatePath ( path . join ( process . cwd ( ) , "js-dist" ) ) ;
0 commit comments