This commit is contained in:
Benjamin Toby
2025-02-04 13:42:30 +01:00
parent 8a1294a348
commit efcee1bb11
24 changed files with 100 additions and 23 deletions
+8 -2
View File
@@ -4,6 +4,13 @@ import fs from "fs";
import path from "path";
import { spawn } from "child_process";
import handleEnvVars from "./utils/env";
import { TurboSyncConfigArray } from "./types";
declare global {
var SYNCING: boolean;
}
global.SYNCING = false;
const confFileProvidedPath = process.argv[process.argv.length - 1];
@@ -71,8 +78,7 @@ try {
const parsedConfigJSON = handleEnvVars({ json: configJSON });
/** @type {import(".").TurboSyncConfigArray} */
const configArray = JSON.parse(parsedConfigJSON);
const configArray = JSON.parse(parsedConfigJSON) as TurboSyncConfigArray;
for (let i = 0; i < configArray.length; i++) {
const config = configArray[i];