mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-04 22:10:40 -05:00
d01932bf75
* fix: use graceful-fs always, warn in development on sync calls * skip prop linting in some dirs * eslint rules * use AST-based lint rule instead * comment * ignore existsSync * run without nextTick * remove dev warning code * fix order * register TS first * fix tests * fix test * cover new call site * fix new test
17 lines
519 B
TypeScript
17 lines
519 B
TypeScript
import fs from 'fs'
|
|
import toIco from 'to-ico'
|
|
|
|
const files = [
|
|
fs.readFileSync('./assets/icons/icon_16x16.png'),
|
|
fs.readFileSync('./assets/icons/icon_24x24.png'),
|
|
fs.readFileSync('./assets/icons/icon_32x32.png'),
|
|
fs.readFileSync('./assets/icons/icon_48x48.png'),
|
|
fs.readFileSync('./assets/icons/icon_64x64.png'),
|
|
fs.readFileSync('./assets/icons/icon_128x128.png'),
|
|
fs.readFileSync('./assets/icons/icon_256x256.png'),
|
|
]
|
|
|
|
toIco(files).then((buf) => {
|
|
fs.writeFileSync('./dist/icons/cypress.ico', buf)
|
|
})
|