fix: fix download fonts script (#8125)

This commit is contained in:
EYHN 2024-09-06 00:37:57 +08:00 committed by GitHub
parent 74cd175d37
commit 52cd6102cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,8 +2,7 @@ import { writeFile } from 'node:fs/promises';
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { AffineCanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';
import { AffineCanvasTextFonts } from '@blocksuite/affine-block-surface';
const fontPath = join(
fileURLToPath(import.meta.url),