Updates
This commit is contained in:
Vendored
+2
-2
@@ -16,10 +16,10 @@ exports.default = watchFiles;
|
||||
const child_process_1 = require("child_process");
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
const delay_1 = __importDefault(require("../../utils/delay"));
|
||||
let timeout;
|
||||
const UPDATE_TIMEOUT = 2000;
|
||||
function watchFiles(_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ files, options, }) {
|
||||
let timeout;
|
||||
const UPDATE_TIMEOUT = 2000;
|
||||
try {
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const file = files[i];
|
||||
|
||||
Vendored
+4
-4
@@ -17,10 +17,10 @@ const fs_1 = __importDefault(require("fs"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const child_process_1 = require("child_process");
|
||||
const delay_1 = __importDefault(require("../../utils/delay"));
|
||||
let timeout;
|
||||
const UPDATE_TIMEOUT = 200;
|
||||
function watchFolders(_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ folders, options, }) {
|
||||
let timeout;
|
||||
const UPDATE_TIMEOUT = 200;
|
||||
try {
|
||||
const dirs = folders;
|
||||
console.log(`Now handling ${dirs.length} Directories`);
|
||||
@@ -112,8 +112,8 @@ function sync({ options, dirs, dirPath, init }) {
|
||||
cmdArray.push("--delete");
|
||||
}
|
||||
if ((_a = options === null || options === void 0 ? void 0 : options.include) === null || _a === void 0 ? void 0 : _a[0]) {
|
||||
options.include.forEach((excl) => {
|
||||
cmdArray.push(`--include='${excl}'`);
|
||||
options.include.forEach((incl) => {
|
||||
cmdArray.push(`--include='${incl}'`);
|
||||
});
|
||||
}
|
||||
if ((_b = options === null || options === void 0 ? void 0 : options.exclude) === null || _b === void 0 ? void 0 : _b[0]) {
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const testVar = 3;
|
||||
const testVar = 35;
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const testVar = 3;
|
||||
const testVar = 35;
|
||||
|
||||
Reference in New Issue
Block a user