Skip to content

Commit 03273b0

Browse files
committed
Moved cache.paths to cachePaths ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/perplexity-omnibox]
1 parent 4a9927f commit 03273b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/bump/extension-manifests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
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),

0 commit comments

Comments
 (0)