FIx some for production again

This commit is contained in:
Montech
2026-09-15 17:26:42 +03:30
parent afde44ab8a
commit 3bc97461e0
195 changed files with 258003 additions and 344 deletions
+20
View File
@@ -0,0 +1,20 @@
/**
* Wipe Nest emit output + stale TypeScript incremental caches.
* Incremental caches can skip emit after dist/ is deleted (empty dist, exit 0).
*/
const { rmSync, existsSync } = require('fs');
const path = require('path');
const root = path.join(__dirname, '..');
const targets = [
path.join(root, 'dist'),
path.join(root, 'tsconfig.tsbuildinfo'),
path.join(root, 'tsconfig.build.tsbuildinfo'),
];
for (const target of targets) {
if (existsSync(target)) {
rmSync(target, { recursive: true, force: true });
console.log('removed', path.relative(root, target) || 'dist');
}
}