"npm run test" will now run both the pre-existing "js" tests as well as the new "ts" test. Use "npm run testjs" to run only the earlier tests.
Borrows a handful of lines from code in the examples/ directory. It doesn't need to do anything interesting, it just needs to successfully compile.
The TS test is not very thorough at this point, but it's a very solid start imo.
I really wish more was written around why node decided files must be named .mjs for node es6 modules.
They list the requirement that both `require` and `import` should be able to load both kinds of modules. Why that requirement? Why not `require` loads CJS and `import` loads ESM!??!
As it is, if you want to use modules in both node and the browser you're going to have to rename all your files to .mjs