Open Scradam opened 7 years ago
require.resolve()
This allows the package to correctly function when node_modules directory uses a maximally flat directory structure.
node_modules
npm run test
./node_modules/handlebars
../node_modules/handlebars
Changes:
require.resolve()
to correctly resolve paths to files in dependency packages (see node v0.8.0 docs)This allows the package to correctly function when
node_modules
directory uses a maximally flat directory structure.Testing:
npm run test
all pass./node_modules/handlebars
moved to../node_modules/handlebars