()
| 489 | } |
| 490 | |
| 491 | export async function getExecutablePath(): Promise<string> { |
| 492 | return ( |
| 493 | process.env['PUPPETEER_EXECUTABLE_PATH'] || |
| 494 | computeExecutablePath({ |
| 495 | cacheDir: |
| 496 | process.env['PUPPETEER_CACHE_DIR'] || |
| 497 | path.join(os.homedir(), '.cache', 'puppeteer'), |
| 498 | browser: BrowserEnum.CHROME, |
| 499 | buildId: PUPPETEER_REVISIONS.chrome, |
| 500 | }) |
| 501 | ); |
| 502 | } |
| 503 | |
| 504 | export const CLI_PATH: string = path.resolve( |
| 505 | import.meta.dirname, |
no outgoing calls