Skip to content

Commit

Permalink
Upgrade glob dependency (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Feb 1, 2024
1 parent 571867c commit 2b2764f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var log = require('npmlog')
var fs = require('fs')
var eachSeries = require('each-series-async')
var napi = require('napi-build-utils')
var glob = require('glob')
var { glob } = require('glob')

var pkg = require(path.resolve('package.json'))
var rc = require('./rc')
Expand Down Expand Up @@ -42,10 +42,7 @@ var opts = Object.assign({}, rc, { pkg: pkg, log: log, buildLog: buildLog, argv:
if (napi.isNapiRuntime(rc.runtime)) napi.logMissingNapiVersions(rc.target, rc.prebuild, log)

if (opts['upload-all']) {
glob('prebuilds/**/*', { nodir: true }, function (err, pbFiles) {
if (err) return onbuilderror(err)
uploadFiles(pbFiles)
})
glob('prebuilds/**/*', { nodir: true }).then(uploadFiles, onbuilderror)
} else {
var files = []
eachSeries(opts.prebuild, function (target, next) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"execspawn": "^1.0.1",
"ghreleases": "^3.0.2",
"github-from-package": "0.0.0",
"glob": "^7.2.3",
"glob": "^10.3.10",
"minimist": "^1.2.8",
"napi-build-utils": "^1.0.2",
"node-abi": "^3.54.0",
Expand Down

0 comments on commit 2b2764f

Please sign in to comment.