Removed global.Promise override (#12182)

closed #11943 

* Remove global.Promise
* Fix brute-knex bluebird error.
* Fix api-acceptance tests.
* Fix unit tests
This commit is contained in:
Kukhyeon Heo 2020-11-04 19:55:47 +09:00 committed by GitHub
parent e37d08b5d0
commit 1d707b59a6

View File

@ -60,7 +60,7 @@ const readPackage = function readPackage(packagePath, packageName) {
};
const readPackages = function readPackages(packagePath) {
return fs.readdir(packagePath)
return Promise.resolve(fs.readdir(packagePath))
.filter(function (packageName) {
// Filter out things which are not packages by regex
if (packageName.match(notAPackageRegex)) {