diff --git a/packages/cli/package.json b/packages/cli/package.json index e25cdc0b..12d59671 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -33,7 +33,7 @@ "angular-html-parser": "^1.8.0", "axios": "^1.6.5", "ejs": "^3.1.9", - "glob": "^8.1.0", + "glob": "^10.5.0", "lodash": "^4.17.21", "pug": "^3.0.2" }, diff --git a/packages/cli/src/commands/push.js b/packages/cli/src/commands/push.js index 2d409261..e5192684 100644 --- a/packages/cli/src/commands/push.js +++ b/packages/cli/src/commands/push.js @@ -48,12 +48,7 @@ class PushCommand extends Command { this.log('Parsing all files to detect translatable content...'); - const allFiles = await new Promise((resolve, reject) => { - glob(filePattern, (err, files) => { - if (err) return reject(err); - return resolve(files); - }); - }); + const allFiles = await glob(filePattern); let emptyFiles = 0; const errorFiles = [];