fix: add support for relative install paths to BrowserFetcher (#7613)

This patch fixes the BrowserFetcher._getFolderPath method so that it supports relative download paths using PUPPETEER_DOWNLOAD_PATH or npm config

Issues: #7592
This commit is contained in:
Nadhir 2021-09-29 15:21:38 +01:00 committed by GitHub
parent 26145e9a24
commit eebf452d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ export class BrowserFetcher {
* @internal
*/
_getFolderPath(revision: string): string {
return path.join(this._downloadsFolder, `${this._platform}-${revision}`);
return path.resolve(this._downloadsFolder, `${this._platform}-${revision}`);
}
}