HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/web.enelar.com.co/node_modules/nx/src/command-line/reset/reset.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetHandler = void 0;
const fs_extra_1 = require("fs-extra");
const client_1 = require("../../daemon/client/client");
const cache_directory_1 = require("../../utils/cache-directory");
const output_1 = require("../../utils/output");
async function resetHandler() {
    output_1.output.note({
        title: 'Resetting the Nx workspace cache and stopping the Nx Daemon.',
        bodyLines: [`This might take a few minutes.`],
    });
    await client_1.daemonClient.stop();
    output_1.output.log({ title: 'Daemon Server - Stopped' });
    (0, fs_extra_1.rmSync)(cache_directory_1.cacheDir, { recursive: true, force: true });
    if (cache_directory_1.projectGraphCacheDirectory !== cache_directory_1.cacheDir) {
        (0, fs_extra_1.rmSync)(cache_directory_1.projectGraphCacheDirectory, { recursive: true, force: true });
    }
    output_1.output.success({
        title: 'Successfully reset the Nx workspace.',
    });
}
exports.resetHandler = resetHandler;