Fastboot is requireing from ...dist/node_modules before falling back to require(moduleName). src
Is this an expected behavior or should the modules be assumed to locate at same level as dist?
And the existsSync should probably be replaced with require wrapped by try-catch directly.
I found this behaviour when debugging an issue here.
A reproduction can be found at https://github.com/xg-wang/fastboot-issue to demonstrate.