mirror of
https://github.com/quartz-community/og-image.git
synced 2026-07-22 02:50:23 +00:00
fix: resolve ESLint and formatting issues for CI compliance
This commit is contained in:
parent
26c052f29c
commit
ab1f8e5ddc
2 changed files with 5 additions and 2 deletions
|
|
@ -138,7 +138,9 @@ export async function fetchTtf(
|
|||
try {
|
||||
await fs.access(cachePath);
|
||||
return fs.readFile(cachePath);
|
||||
} catch {}
|
||||
} catch {
|
||||
/* file not cached, will fetch below */
|
||||
}
|
||||
|
||||
const cssResponse = await fetch(
|
||||
`https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { defineConfig } from "tsup";
|
||||
import type { BuildOptions } from "esbuild";
|
||||
|
||||
export default defineConfig({
|
||||
entry: {
|
||||
|
|
@ -13,7 +14,7 @@ export default defineConfig({
|
|||
splitting: false,
|
||||
outDir: "dist",
|
||||
external: ["sharp"],
|
||||
esbuildOptions(options: any) {
|
||||
esbuildOptions(options: BuildOptions) {
|
||||
options.jsx = "automatic";
|
||||
options.jsxImportSource = "preact";
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue