summaryrefslogtreecommitdiffstats
path: root/build/build-svgs.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:26 +0000
commitd50fca7dd40f596ebb8b50cd9c4140857f2a0637 (patch)
treea8b40991dcab905c34658c3d860ad7e0a4554c9d /build/build-svgs.js
parentReleasing debian version 1.10.3+dfsg-1. (diff)
downloadbootstrap-icons-d50fca7dd40f596ebb8b50cd9c4140857f2a0637.tar.xz
bootstrap-icons-d50fca7dd40f596ebb8b50cd9c4140857f2a0637.zip
Merging upstream version 1.10.4+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/build-svgs.js')
-rw-r--r--build/build-svgs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js
index c889ce5..ed868e6 100644
--- a/build/build-svgs.js
+++ b/build/build-svgs.js
@@ -2,9 +2,9 @@
'use strict'
-const fs = require('fs').promises
-const path = require('path')
-const process = require('process')
+const fs = require('node:fs').promises
+const path = require('node:path')
+const process = require('node:process')
const picocolors = require('picocolors')
const { loadConfig, optimize } = require('svgo')
@@ -46,7 +46,7 @@ async function processFile(file, config) {
const filesLength = files.length
- console.log(picocolors.green('\nSuccess, prepared %s icon%s!'), filesLength, filesLength !== 1 ? 's' : '')
+ console.log(picocolors.green('\nSuccess, prepared %s icon%s!'), filesLength, filesLength === 1 ? '' : 's')
console.timeEnd(timeLabel)
} catch (error) {
console.error(error)