template-saas/apps/backend/node_modules/ts-node-dev/lib/check-file-exists.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

17 lines
541 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var fs_1 = __importDefault(require("fs"));
var filePath = process.argv[2];
var handler = function (stat) {
if (stat && stat.birthtime.getTime() > 0) {
process.exit(0);
}
};
fs_1.default.watchFile(filePath, { interval: 100 }, handler);
fs_1.default.stat(filePath, function (err, stat) {
handler(stat);
});