Fix some for production

This commit is contained in:
mahmood
2026-09-10 12:17:47 +03:30
parent 78e148a6b5
commit cea3b808d8
121 changed files with 86493 additions and 211 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');
}
}