reduced test case for require.resolve
regression in Node v12
run
automatically sets up the directory structure above, downloads various
Node versions (see node_versions.txt
; URL configured for macOS), executes the
command above and reports the results
/path/to/lib
├── dummy
│ ├── index.js
│ └── src.js
└── node_modules
└── dummy
├── index.js
└── pkg.js
require.resolve("dummy/src.js", { paths: ["/path/to/lib"] });
this used to work on Node v8 and v10, returning /path/to/lib/dummy/src.js
,
but throws on Node v12 (all minor/patch releases)