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 10
10
path = require ( 'path' ) // to manipulate paths
11
11
12
12
// Init CACHE vars
13
- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14
- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13
+ const cachePaths = { root : '.cache/' }
14
+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
15
15
16
16
// Import BUMP UTILS
17
- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18
- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17
+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18
+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
19
19
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
20
20
) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21
- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21
+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
22
22
23
23
// Init REPO context
24
24
const repoName = ( ( ) => {
You can’t perform that action at this time.
0 commit comments