From 89313ef6a4d381eed614b751c1ead89a8714f27c Mon Sep 17 00:00:00 2001 From: MohammadHoseinPaymard Date: Mon, 26 May 2025 14:23:34 +0330 Subject: [PATCH] update index.js and util.js --- index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 25f7ad2..2e22a7a 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,14 @@ const path = require('path'); +const { sleep } = require('./util'); -// const {} = require(path.join("..")); +const {mainStarterFunction} = require(path.join(process.cwd(),"..","server","dist","index-for-test-paymard.js")); -console.log(path.join(process.cwd(),"..")) \ No newline at end of file +async function main(){ + await mainStarterFunction(); + await sleep(5e3); + + + console.log("DONE"); +} + +main(); \ No newline at end of file