fix: fix download fonts script (#8125)
This commit is contained in:
@@ -2,8 +2,7 @@ import { writeFile } from 'node:fs/promises';
|
|||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
import { AffineCanvasTextFonts } from '@blocksuite/affine-block-surface';
|
||||||
import { AffineCanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';
|
|
||||||
|
|
||||||
const fontPath = join(
|
const fontPath = join(
|
||||||
fileURLToPath(import.meta.url),
|
fileURLToPath(import.meta.url),
|
||||||
|
|||||||
Reference in New Issue
Block a user