GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.01k stars 9.31k forks source link

cli: ensure writeFile creates filePath directories if they don't exist #15990

Open servusdei2018 opened 1 month ago

servusdei2018 commented 1 month ago

Summary This PR introduces a fix for writeFile. The function currently assumes that the directories leading to the specified filePath exist, but this PR ensures that they exist.

Related Issues/PRs No related issues or PRs.