Files
hedena_gold/apps/api/scripts/clean-dist.cjs
T
s.esmaeili ea86636027 Initial commit: Hedena Gold monorepo.
First commit of the Hedena Gold product (separate from gold-bank): branding, package names, and deploy defaults aligned to the new brand; legacy Henza trees stay local-only via .gitignore.
2026-10-15 17:19:10 +03:30

21 lines
599 B
JavaScript

/**
* 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');
}
}