Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/astro-font/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function astroFont(): AstroIntegration {
'astro:build:done': async ({ dir }) => {
const { existsSync, cpSync, readdirSync } = await import('node:fs')
const { join } = await import('node:path')
const buildDir = dir.pathname
const { fileURLToPath } = await import('node:url')
const buildDir = fileURLToPath(dir)
function findAndCopyFontDirs(currentDir: string, relPath: string = '') {
const entries = readdirSync(currentDir, { withFileTypes: true })
for (const entry of entries) {
Expand Down