{
  "version": 3,
  "sources": ["../../../../src/packages/config/concurrency.ts"],
  "sourcesContent": ["import os from 'os'\n\nexport function getWorkspaceConcurrency (option: number | undefined): number {\n  if (typeof option !== 'number') return 4\n\n  if (option <= 0) {\n    // If option is <= 0, it uses the amount of cores minus the absolute of the number given\n    // but always returning at least 1\n    return Math.max(1, (os.availableParallelism?.() ?? os.cpus().length) - Math.abs(option))\n  }\n\n  return option\n}\n"],
  "mappings": "AAAA,OAAO,QAAQ;AAER,SAAS,wBAAyB,QAAoC;AAC3E,MAAI,OAAO,WAAW,SAAU,QAAO;AAEvC,MAAI,UAAU,GAAG;AAGf,WAAO,KAAK,IAAI,IAAI,GAAG,uBAAuB,KAAK,GAAG,KAAK,EAAE,UAAU,KAAK,IAAI,MAAM,CAAC;AAAA,EACzF;AAEA,SAAO;AACT;",
  "names": []
}
