Skip to content

Commit acda1fd

Browse files
committed
update icons script
1 parent d6d0dd6 commit acda1fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .build/update-icons.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { globSync, glob } from 'glob'
1+
import { globSync } from 'glob'
22
import fs from 'fs'
33
import path from 'path'
44
import { ICONS_SRC_DIR, getMaxUnicode, getArgvs, getPackageJson } from './helpers.mjs'
55

66
const argv = getArgvs(),
7-
newVersion = argv['new-version']
7+
pkg = getPackageJson(),
8+
newVersion = argv['new-version'] || pkg.version
89

910
const files = globSync(path.join(ICONS_SRC_DIR, '**/*.svg'))
1011

0 commit comments

Comments
 (0)