Output server.mjs for standalone with type: module (#77944)
This ensures we output `server.mjs` when `type: 'module'` is configured
for a project using `standalone` mode. This also ensures we copy the
`package.json` to the standalone folder as we were previously only
copying it if it was included in the traced assets.