{
  "version": 3,
  "sources": ["../../../../../src/packages/default-reporter/reporterForClient/reportExecutionTime.ts"],
  "sourcesContent": ["import prettyMs from 'pretty-ms';\nimport { packageManager } from '../../cli-meta/index.ts';\nimport type { ExecutionTimeLog } from '../../core-loggers/index.ts';\nimport * as Rx from 'rxjs';\nimport { map, take } from 'rxjs/operators';\n\nexport function reportExecutionTime(\n  executionTime$: Rx.Observable<ExecutionTimeLog>\n): Rx.Observable<Rx.Observable<{ fixed: boolean; msg: string }>> {\n  return executionTime$.pipe(\n    take(1),\n    map((log) => {\n      return Rx.of({\n        fixed: true, // Without this, for some reason sometimes the progress bar is printed after the execution time\n        msg: `Done in ${prettyMs(log.endedAt - log.startedAt)} using ${packageManager.name} v${packageManager.version}`,\n      });\n    })\n  );\n}\n"],
  "mappings": "AAAA,OAAO,cAAc;AACrB,SAAS,sBAAsB;AAE/B,YAAY,QAAQ;AACpB,SAAS,KAAK,YAAY;AAEnB,SAAS,oBACd,gBAC+D;AAC/D,SAAO,eAAe;AAAA,IACpB,KAAK,CAAC;AAAA,IACN,IAAI,CAAC,QAAQ;AACX,aAAO,GAAG,GAAG;AAAA,QACX,OAAO;AAAA;AAAA,QACP,KAAK,WAAW,SAAS,IAAI,UAAU,IAAI,SAAS,CAAC,UAAU,eAAe,IAAI,KAAK,eAAe,OAAO;AAAA,MAC/G,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AACF;",
  "names": []
}
