Skip to content

Commit 4831171

Browse files
committed
chore: install untracked dependencies and upgrade glob to latest version which is now promise enabled.
1 parent e70cdaf commit 4831171

File tree

3 files changed

+7
-10186
lines changed

3 files changed

+7
-10186
lines changed

assets/images.11ty.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
const path = require('path')
2-
const util = require('util')
3-
const glob = require('glob')
1+
const path = require('node:path')
2+
const {glob} = require('glob')
43
const sharp = require('sharp')
54
const mkdirp = require('mkdirp')
65

@@ -60,12 +59,10 @@ module.exports = class {
6059

6160
async loadImages(imgFolder) {
6261
const cwd = path.resolve(imgFolder.file)
63-
const getImages = util.promisify(glob)
62+
const getImages = glob
6463
const processedImages = []
65-
6664
const imgs = await getImages('**/*(*.jpg|*.png|*.gif)', { cwd })
6765
const imgsRendered = await getImages('**/*(*.jpg|*.png|*.gif)', { cwd: outputPath })
68-
6966
for (const img of imgs) {
7067
const ext = path.extname(img)
7168
const base = path.basename(img, ext)

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@
5353
"markdown-it-container": "^3.0.0",
5454
"markdown-it-footnote": "^3.0.3",
5555
"moment": "^2.29.4",
56+
"npm-check-updates": "^16.6.0",
5657
"npm-run-all": "^4.1.5",
5758
"qrcode": "^1.5.1",
5859
"sass": "^1.56.2",
59-
"sharp": "^0.31.2",
60+
"sharp": "^0.33.4",
6061
"shx": "^0.3.4",
61-
"npm-check-updates": "^16.6.0",
62+
"glob": "^10.4.1",
63+
"mkdirp": "^3.0.1",
6264
"xo": "^0.53.1"
6365
}
6466
}

0 commit comments

Comments
 (0)