initial commit

This commit is contained in:
fuegovic
2024-05-09 17:09:13 -04:00
parent c528376398
commit b627dc653e
383 changed files with 35369 additions and 1 deletions

17
scripts/clean-cache.ts Normal file
View File

@@ -0,0 +1,17 @@
const { execSync } = require('child_process')
const os = require('os')
function cleanCache() {
const isWindows = os.platform() === 'win32'
const npmCommand = 'pnpm next-sitemap'
const removeCacheCommand = isWindows ? 'rmdir /s /q .next\\cache' : 'rm -rf .next/cache'
try {
execSync(`${npmCommand} && ${removeCacheCommand}`, { stdio: 'inherit', shell: true })
} catch (error) {
console.error('Error cleaning cache:', error)
process.exit(1)
}
}
cleanCache()