Skip to content

Commit

Permalink
Add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenzie132 committed Jan 21, 2023
1 parent b790148 commit c880cf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5372,13 +5372,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.wait = void 0;
const fs_1 = __webpack_require__(747);
const timeoutSeconds = 60;
function wait(dir) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
const timeout = setTimeout(() => {
watcher.close();
reject(new Error('timeout: SC was not ready even after we wait 45 secs'));
}, 45 * 1000);
reject(new Error(`timeout: SC was not ready even after we wait ${timeoutSeconds} secs`));
}, timeoutSeconds * 1000);
const watcher = fs_1.watch(dir, (eventType, filename) => {
if (filename !== 'sc.ready') {
return;
Expand Down

0 comments on commit c880cf6

Please sign in to comment.