12345678910111213141516 |
- import Zip from 'adm-zip'
- import { getPackageJson, HOME_DIR } from './helpers.mjs'
- import { resolve } from 'path'
- const p = getPackageJson()
- const zip = new Zip()
- zip.addLocalFile(resolve(HOME_DIR, `.github/og.png`), '.', 'tabler-icons.png')
- zip.addLocalFolder(resolve(HOME_DIR, `packages/icons/icons/`), 'svg')
- zip.addLocalFolder(resolve(HOME_DIR, `packages/icons-png/icons/`), 'png')
- zip.addLocalFolder(resolve(HOME_DIR, `packages/icons-pdf/icons/`), 'pdf')
- zip.addLocalFolder(resolve(HOME_DIR, `packages/icons-eps/icons/`), 'eps')
- zip.addLocalFolder(resolve(HOME_DIR, `packages/icons-webfont/dist`), 'webfont')
- zip.writeZip(resolve(HOME_DIR, `packages-zip/tabler-icons-${p.version}.zip`));
|