diff --git a/.build/update-icons.mjs b/.build/update-icons.mjs index 8ac2aa8c2..f4b2d011e 100644 --- a/.build/update-icons.mjs +++ b/.build/update-icons.mjs @@ -1,10 +1,11 @@ -import { globSync, glob } from 'glob' +import { globSync } from 'glob' import fs from 'fs' import path from 'path' import { ICONS_SRC_DIR, getMaxUnicode, getArgvs, getPackageJson } from './helpers.mjs' const argv = getArgvs(), - newVersion = argv['new-version'] + pkg = getPackageJson(), + newVersion = argv['new-version'] || pkg.version const files = globSync(path.join(ICONS_SRC_DIR, '**/*.svg'))