Skip to content

Commit f0f49f0

Browse files
committed
Moved cache.paths to cachePaths ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent dd14ea2 commit f0f49f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/bump/resources.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
path = require('path') // to manipulate paths
1111

1212
// 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`)
1515

1616
// 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(
1919
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs')).text()
2020
).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)
2222

2323
// Init REPO context
2424
const repoName = (() => {

0 commit comments

Comments
 (0)