File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
You can’t perform that action at this time.
0 commit comments