@@ -242,7 +242,7 @@ async function executeOasDiff(
242242 } ) ;
243243}
244244
245- function removeApiVersionFromDirNames ( dirs : { name : string , path : string } [ ] ) {
245+ function removeApiVersionFromDirNames ( dirs : { name : string ; path : string } [ ] ) {
246246 dirs . forEach ( ( dir ) => {
247247 // Remove minor and patch versions, keep only major version
248248 // Example: 'shopper-stores-oas-1.0.16' -> 'shopper-stores-oas-1'
@@ -278,19 +278,14 @@ async function handleDirectoryMode(
278278 const newExchangeDirs = await findExchangeDirectories ( newApi ) ;
279279
280280 // TODO: hide this under a flag
281- removeApiVersionFromDirNames ( baseExchangeDirs )
282- removeApiVersionFromDirNames ( newExchangeDirs )
283-
284- console . log ( 'BASE EXCHANGE DIRS: ' , baseExchangeDirs )
285- console . log ( 'NEW EXCHANGE DIRS: ' , newExchangeDirs )
281+ removeApiVersionFromDirNames ( baseExchangeDirs ) ;
282+ removeApiVersionFromDirNames ( newExchangeDirs ) ;
286283
287284 const allDirNames = new Set ( [
288285 ...baseExchangeDirs . map ( ( dir ) => dir . name ) ,
289286 ...newExchangeDirs . map ( ( dir ) => dir . name ) ,
290287 ] ) ;
291288
292- console . log ( 'ALL DIR NAMES: ' , allDirNames )
293-
294289 for ( const dirName of allDirNames ) {
295290 const baseDir = baseExchangeDirs . find ( ( dir ) => dir . name === dirName ) ;
296291 const newDir = newExchangeDirs . find ( ( dir ) => dir . name === dirName ) ;
0 commit comments