Not a big issue, but funny.
If I have two files, config.json and config.ts, and an import like this:
import config from './config'
it imports the config.json instead of config.ts.
This only happened with ts-node. I tried setting up resolveJsonModule = false in tsconfig.json, but still imports config.json.
With tsc, it imports config.ts normally, unless I explicitly import using import config from './config.json'.
Not a big issue, but funny.
If I have two files,
config.jsonandconfig.ts, and an import like this:import config from './config'it imports the
config.jsoninstead ofconfig.ts.This only happened with ts-node. I tried setting up
resolveJsonModule = falseintsconfig.json, but still importsconfig.json.With tsc, it imports
config.tsnormally, unless I explicitly import usingimport config from './config.json'.