sorting out the package and copying node_modules to build