mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-30 09:10:59 +02:00
update icons script
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import { globSync, glob } from 'glob'
|
import { globSync } from 'glob'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { ICONS_SRC_DIR, getMaxUnicode, getArgvs, getPackageJson } from './helpers.mjs'
|
import { ICONS_SRC_DIR, getMaxUnicode, getArgvs, getPackageJson } from './helpers.mjs'
|
||||||
|
|
||||||
const argv = getArgvs(),
|
const argv = getArgvs(),
|
||||||
newVersion = argv['new-version']
|
pkg = getPackageJson(),
|
||||||
|
newVersion = argv['new-version'] || pkg.version
|
||||||
|
|
||||||
const files = globSync(path.join(ICONS_SRC_DIR, '**/*.svg'))
|
const files = globSync(path.join(ICONS_SRC_DIR, '**/*.svg'))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user