PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/nx/src/command-line

Просмотр файла: reset.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetHandler = void 0;
const tslib_1 = require("tslib");
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");
function resetHandler() {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        output_1.output.note({
            title: 'Resetting the Nx workspace cache and stopping the Nx Daemon.',
            bodyLines: [`This might take a few minutes.`],
        });
        yield 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;
//# sourceMappingURL=reset.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!