@nxarch/nest-nguniversal
Version:
A NestJS library to serve your NestJS Angular Universal project
13 lines (12 loc) • 419 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.triggerReload = void 0;
const node_utils_1 = require("./node.utils");
function triggerReload() {
const syncPath = process.env.BS_TRIGGER_FILE;
if (!syncPath)
return;
const content = (0, node_utils_1.readFile)(syncPath);
(0, node_utils_1.writeFile)(syncPath, !content);
}
exports.triggerReload = triggerReload;