Compiling a copy of postgresql datasource


I’m making a datasource plugin which would extend editing options of existing grafana’s postgres datasource. I’m considering copying existing postgres plugin to \grafana\public\app\plugins\datasource and then modifying it, but I can’t find what and where to add so that those sources would get compiled.

Could anyone point to me where this should be configured?