Plugin pre-install steps

Hey there,

I was trying to develop a build plugin that executes before yarn install gets executed. Is this possible at all? From the doc, it does not appear like so, but maybe it is already possible somehow or in pipeline?

The specific problem I am trying to solve is to inject a .npmrc file before yarn gets called, but unfortunately there seems no way of doing this.

Any ideas?

Thanks!

Hi @Giovanni_Frigo,

This is not currently possible. However this has been requested and we are tracking this feature request in the following issue: Add onPreInstall event · Issue #1149 · netlify/build · GitHub
Stay tuned!

1 Like

Any news on this feature? Thanks!

hey there, if there are updates, that issue is definitely the best place to look :eyes: