"scripts": {
"someScript": "node scripts/someScript.js", //путь до файла от package.json
},
export const taskQueue = queue(async (task, done) => {
try {
await task();
console.log(chalk.bold.magenta('Task completed, tasks left: ' + taskQueue.length() + '\n'));
done();
const result = taskQueue(task, done).length
} catch (err) {
throw err;
}
}, concurrency);
Но почитайте ещё отзывы по раным частям мб в каких то лучше))