flat-laptop-88943
11/12/2024, 2:33 PMERR_UNKNOWN_FILE_EXTENSION
error. I cannot get rid of "type":module
in package json because that will error out when trying to use top lvl await which I also want to take advantage of during refactor. Is there any actually confirmed to work
approach to sorting this out? I tested node 18, 19 and 21 - no difference. I can provide package.json and tsconfig.json files if necessary to discuss this (as I am not the one who originally started this repo config - everything is up for a debate).little-cartoon-10569
11/12/2024, 10:13 PMruntime:
name: nodejs
options:
nodeargs: "--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node"
flat-laptop-88943
11/13/2024, 10:11 AM--import tsx
to node args.
thanks to @bland-processor-73185 leaving a trace on github
not sure how futureproof that approach is but it seems to tick all of the boxes for me which is being able to use latest node, ESM module type in package json and still leverage top lvl awaitslittle-cartoon-10569
11/13/2024, 9:00 PM