Maybe you can come up with more universal copy script than the one above, one that works for as well server-connect as app_connect extensions and their folders.
With App Connect extensions it is a bit more challenging because there might be some additional js/css files that need to be copied from within the node_modules. Those are usually referenced in the copyFiles key in the components.hjson
and should go inside the extensions
folder as well and the copyFiles key should be changed to refer as src the extensions
as root.
so actually App Connect extensions like from @Roney_Dsilva like https://www.npmjs.com/package/@cdmx/wappler_ac_ag_chart need to be changed as well.