Scripts: Defer installation of dependencies until they are used for the first time #17987
Labels
Needs Dev
Ready for, and needs developer efforts
[Tool] WP Scripts
/packages/scripts
[Type] Enhancement
A suggestion for improvement.
A related issue which this would resolve #15667.
We would like to defer the installation of some bigger npm dependencies when installing
@wordpress/scripts
. The whole idea is explained in #17871 (comment) by @youknowriad:Another related comment from @epiqueras shared in #17871 (comment):
In the ideal scenario, when you run
npx wp-scripts e2e-tests
for the first time, it installspuppeteer
(with Chromium) behind the scenes and then bootstraps WordPress environment as well 😄The text was updated successfully, but these errors were encountered: