Merge pull request #10848 from christianwiedemann/project_root

Core: Fix typo in projectRoot node_modules detection
This commit is contained in:
Michael Shilman 2020-05-23 01:11:44 +08:00 committed by GitHub
commit c0db033137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ const projectRoot = () => {
//
}
try {
result = result || __dirname.split('node-modules')[0];
result = result || __dirname.split('node_modules')[0];
} catch (e) {
//
}