copy package.json properly