[dist] Use peerDependencies for resource and resources
[dist] Add npm to the package.json engines field