@@ -22,16 +22,16 @@ let {
2222}  =  args 
2323
2424// NOTE: while in dev 
25- optionTag  =  optionTag  ||  'edge ' 
25+ optionTag  =  optionTag  ||  'next ' 
2626
2727// const preId = 
2828//   args.preid || 
2929//   (semver.prerelease(currentVersion) && semver.prerelease(currentVersion)[0]) 
3030const  EXPECTED_BRANCH  =  'main' 
3131
32- const  incrementVersion  =  increment  => 
32+ const  incrementVersion  =  ( increment )  => 
3333  semver . inc ( currentVersion ,  increment ,  preId ) 
34- const  bin  =  name  =>  resolve ( __dirname ,  '../node_modules/.bin/'  +  name ) 
34+ const  bin  =  ( name )  =>  resolve ( __dirname ,  '../node_modules/.bin/'  +  name ) 
3535/** 
3636 * @param  bin {string} 
3737 * @param  args {string} 
@@ -43,7 +43,7 @@ const run = (bin, args, opts = {}) =>
4343const  dryRun  =  ( bin ,  args ,  opts  =  { } )  => 
4444  console . log ( chalk . blue ( `[dryrun] ${ bin } ${ args . join ( ' ' ) }  ) ,  opts ) 
4545const  runIfNotDry  =  isDryRun  ? dryRun  : run 
46- const  step  =  msg  =>  console . log ( chalk . cyan ( msg ) ) 
46+ const  step  =  ( msg )  =>  console . log ( chalk . cyan ( msg ) ) 
4747
4848async  function  main ( )  { 
4949  if  ( ! skipCleanGitCheck )  { 
@@ -136,7 +136,7 @@ async function main() {
136136        name : 'release' , 
137137        message : `Select release type for ${ chalk . bold . white ( name ) }  , 
138138        choices : versionIncrements 
139-           . map ( i  =>  `${ i } ${ name } ${ semver . inc ( version ,  i ,  preId ) }  ) 
139+           . map ( ( i )  =>  `${ i } ${ name } ${ semver . inc ( version ,  i ,  preId ) }  ) 
140140          . concat ( [ 'custom' ] ) , 
141141      } ) 
142142
@@ -264,8 +264,8 @@ function updateDeps(pkg, depType, updatedPackages) {
264264  const  deps  =  pkg [ depType ] 
265265  if  ( ! deps )  return 
266266  step ( `Updating ${ chalk . bold ( depType ) } ${ chalk . bold . white ( pkg . name ) }  ) 
267-   Object . keys ( deps ) . forEach ( dep  =>  { 
268-     const  updatedDep  =  updatedPackages . find ( pkg  =>  pkg . name  ===  dep ) 
267+   Object . keys ( deps ) . forEach ( ( dep )  =>  { 
268+     const  updatedDep  =  updatedPackages . find ( ( pkg )  =>  pkg . name  ===  dep ) 
269269    // avoid updated peer deps that are external like @vue /devtools-api 
270270    if  ( dep  &&  updatedDep )  { 
271271      console . log ( 
@@ -339,7 +339,7 @@ async function getChangedPackages() {
339339  const  folders  =  [ './' ] 
340340
341341  const  pkgs  =  await  Promise . all ( 
342-     folders . map ( async  folder  =>  { 
342+     folders . map ( async  ( folder )  =>  { 
343343      if  ( ! ( await  fs . lstat ( folder ) ) . isDirectory ( ) )  return  null 
344344
345345      const  pkg  =  JSON . parse ( await  fs . readFile ( join ( folder ,  'package.json' ) ) ) 
@@ -373,10 +373,10 @@ async function getChangedPackages() {
373373    } ) 
374374  ) 
375375
376-   return  pkgs . filter ( p  =>  p ) 
376+   return  pkgs . filter ( ( p )  =>  p ) 
377377} 
378378
379- main ( ) . catch ( error  =>  { 
379+ main ( ) . catch ( ( error )  =>  { 
380380  console . error ( error ) 
381381  process . exit ( 1 ) 
382382} ) 
0 commit comments