* WIP * restore .d.ts file * add notes and todos * strip down node-internal-modules-cjs-loader to match main branch; will build it back up from here * committing all local stuff * update * it kinda works! * fix CI? * fix? * fix? * fix * bump up to node 18 cuz why not * test matrix: replace node17 with node18 * fix node12 test failure * fix for prior hooks API * tweak * fix * teach node environment resetter to re-sort require.extensions * fix * fix * fix * windows fix? * Addressing TODOs * sync another raw file with upstream * Improve reuse / DI within node ESM stuff * cleanup node internalBinding stuff * Adding hint when ts-node is ignoring a file that you might want it to compile; addressing todos; adding a new one * Add tests for self-imports and empty package.json manifests importing a root index.* file * fix * fix node12
TODO must require explicit rootDir; do not allow to be inferred. TODO resolve JSON if resolveJsonModules??
Test a bunch of permutations of:
config permutations:
-
allowJs
-
not allowJs
-
preferSrc
-
not preferSrc
import permutations:
-
Relative import of file
-
Relative import of index
-
rootless library import of main
-
rootless library import of index
-
rootless library import of exports sub-path
-
rootless self-import of main
-
rootless self-import of index
-
rootless self-import of exports sub-path
-
Require with extension
-
Require without extension
-
Require from dist to dist
-
Require from dist to src
-
Require from src to dist
-
Require from src to src
-
lib permutations:
-
module exists in both src and dist (precompilation ran)
-
module exists in only dist (came from elsewhere)
-
module exists only in src (did not precompile)
-
.ts / .js extension
-
.tsx / .js extension
-
.cts / .cjs extension
-
.mts / .mjs extension
-
.js / .js extension
-
.jsx / .js extension
-
.cjs / .cjs extension
-
.mjs / .mjs extension