Use realpath for helping TypeScript find the @types folder when there's a conflict between node_modules and @types. TypeScript can normally find the folder just fine, but with bazel directory structure gets confused.
Use realpath for helping TypeScript find the @types folder when there's a
conflict between node_modules and @types. TypeScript can normally find the
folder just fine, but with bazel directory structure gets confused.

Because we now use realpath, the Hermetic check can now only look for
node_modules.

PiperOrigin-RevId: 160007796

alexeagle/rules_nodejs,alexeagle/rules_nodejs,alexeagle/rules_nodejs,achew22/rules_typescript,bazelbuild/rules_nodejs,bazelbuild/rules_nodejs,achew22/rules_typescript,achew22/rules_typescript,bazelbuild/rules_nodejs,bazelbuild/rules_typescript,alexeagle/rules_nodejs,bazelbuild/rules_typescript,bazelbuild/rules_nodejs,bazelbuild/rules_typescript,bazelbuild/rules_nodejs