mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 03:42:27 +03:00
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:
parent
e37d08b5d0
commit
1d707b59a6
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user