Also subPackage builds into "targetPath": "/template" as expected.
But copyFiles uses "targetPath": "/build" instead of using it's local "targetPath": "/template".
I just assumed if targetPath has been set in subPackage then all commands for this package should use its targetPath config as a destination folder
if there somebody of dub distributors please check is it a bug?