2022-11-24 06:42:03 +03:00
|
|
|
import { copy } from 'fs-extra'
|
2023-01-02 07:53:53 +03:00
|
|
|
import { emojiPrefix, iconifyEmojiPackage } from '../config/emojis'
|
2022-11-24 06:42:03 +03:00
|
|
|
|
|
|
|
const dereference = process.platform === 'win32' ? true : undefined
|
|
|
|
|
2022-11-30 08:45:42 +03:00
|
|
|
await copy('node_modules/shiki-es/dist/assets', 'public/shiki/', {
|
2022-11-24 06:42:03 +03:00
|
|
|
dereference,
|
|
|
|
filter: src => src === 'node_modules/shiki/' || src.includes('languages') || src.includes('dist'),
|
|
|
|
})
|
|
|
|
await copy('node_modules/theme-vitesse/themes', 'public/shiki/themes', { dereference })
|
|
|
|
await copy('node_modules/theme-vitesse/themes', 'node_modules/shiki/themes', { overwrite: true, dereference })
|
2023-01-02 07:53:53 +03:00
|
|
|
await copy(`node_modules/${iconifyEmojiPackage}/icons`, `public/emojis/${emojiPrefix}`, { overwrite: true, dereference })
|