I made a rookie mistake. ESM modules should have a package.json with "type": "module"
. Also, the eslint file needs to have a cjs extension in ESM. This as well as making changes to the tsconfig will allow the build to deploy correctly to cloud run!