1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-24 15:16:09 +09:00
elk/scripts/prepare.ts
2022-11-30 13:45:42 +08:00

11 lines
487 B
TypeScript

import { copy } from 'fs-extra'
const dereference = process.platform === 'win32' ? true : undefined
await copy('node_modules/shiki-es/dist/assets', 'public/shiki/', {
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 })