mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-05 03:59:59 +03:00
10 lines
473 B
TypeScript
10 lines
473 B
TypeScript
import { copy } from 'fs-extra'
|
|
|
|
const dereference = process.platform === 'win32' ? true : undefined
|
|
|
|
await copy('node_modules/shiki/', '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 })
|