1
0
elk/scripts/prepare.ts

11 lines
487 B
TypeScript
Raw Normal View History

2022-11-24 12:42:03 +09:00
import { copy } from 'fs-extra'
const dereference = process.platform === 'win32' ? true : undefined
2022-11-30 14:45:42 +09:00
await copy('node_modules/shiki-es/dist/assets', 'public/shiki/', {
2022-11-24 12:42:03 +09: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 })