Updates
This commit is contained in:
Vendored
+5
-1
@@ -8,8 +8,12 @@ const fs_1 = __importDefault(require("fs"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const child_process_1 = require("child_process");
|
||||
const env_1 = __importDefault(require("./utils/env"));
|
||||
global.SYNCING = false;
|
||||
const confFileProvidedPath = process.argv[process.argv.length - 1];
|
||||
global.CONFIG_DIR = process.cwd();
|
||||
global.SYNCING_FILE = path_1.default.join(global.CONFIG_DIR, "syncing.txt");
|
||||
if (fs_1.default.existsSync(global.SYNCING_FILE)) {
|
||||
fs_1.default.unlinkSync(global.SYNCING_FILE);
|
||||
}
|
||||
if (confFileProvidedPath === "--version" || confFileProvidedPath === "-v") {
|
||||
try {
|
||||
const packageJson = fs_1.default.readFileSync(path_1.default.resolve(__dirname, "../package.json"), "utf-8");
|
||||
|
||||
Reference in New Issue
Block a user