1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-31 09:32:04 +02:00

build fix

This commit is contained in:
codecalm
2022-08-25 23:04:34 +02:00
parent 5befc6adb0
commit 3d2983ffb1

View File

@@ -101,7 +101,11 @@ async function asyncForEach(array, callback) {
const svgToPng = async (filePath, destination) => {
filePath = path.join(__dirname, filePath)
await cp.exec(`rsvg-convert -h 240 ${filePath} > ${destination}`)
await new Promise((resolve, reject) => {
cp.exec(`rsvg-convert -h 240 ${filePath} > ${destination}`, (error, stdout, stderr) => {
error ? reject() : resolve()
})
})
}
const createScreenshot = async (filePath) => {