Skip to content

Commit

Permalink
Shortened cache filename to userJSpaths.json
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Dec 26, 2024
1 parent 1f03e90 commit 1e98ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/bump/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Bumps @require'd JS + rising-stars CSS @resource's in userscripts
// NOTE: Doesn't git commit to allow script editing from breaking changes
// NOTE: Pass --cache to use .cache/userscriptPaths.json for faster init
// NOTE: Pass --cache to use .cache/userJSpaths.json for faster init

(async () => {

Expand Down Expand Up @@ -122,8 +122,8 @@
// Collect userscripts
log.working(`\n${ cacheMode ? 'Collecting' : 'Searching for' } userscripts...\n`)
let userJSfiles = []
if (cacheMode) { // make/use .cache/userscriptPaths.json
const cacheFilePath = path.join(__dirname, '.cache/userscriptPaths.json')
if (cacheMode) { // make/use .cache/userJSpaths.json
const cacheFilePath = path.join(__dirname, '.cache/userJSpaths.json')
if (!fs.existsSync(cacheFilePath)) { // cache file missing, build w/ findUserJS()
log.error(`Cache file missing. Generating ${cacheFilePath}...\n`)
userJSfiles = await findUserJS() ; console.log('')
Expand Down

0 comments on commit 1e98ff4

Please sign in to comment.