Package add files programmatically



I faced the problem, that i need to add npm dependency and then use it on client/server.
I add Npm.depends and then in onUse callback add files directly from .npm/… folders.

But what i need now, is to build some js file and then add it to package files.

Meteor package api is so poor, have somebody experience to do that?