From d50fca7dd40f596ebb8b50cd9c4140857f2a0637 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Apr 2023 14:22:26 +0200 Subject: Merging upstream version 1.10.4+dfsg. Signed-off-by: Daniel Baumann --- build/build-svgs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/build-svgs.js') 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) -- cgit v1.2.3