From bc113607df7d3301479a6f833d862d7d8cea8ca6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 10 Mar 2024 13:05:28 -0700 Subject: [PATCH] chore: do not use `defineFontProvider` in repo This reverts commit b7bff827df152b9709e168fe222223f8e2cdb8cb. This reverts commit 191fea73b4e75b6b5ddc86258ed3604078276b56. --- .github/workflows/ci.yml | 1 - playground/providers/custom.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0802f2..5416615 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,6 @@ jobs: run: pnpm playwright-core install chromium - run: pnpm dev:prepare - - run: pnpm test:types - run: pnpm lint - run: pnpm test -- --coverage - run: pnpm build diff --git a/playground/providers/custom.ts b/playground/providers/custom.ts index 576a974..86e8854 100644 --- a/playground/providers/custom.ts +++ b/playground/providers/custom.ts @@ -1,7 +1,7 @@ -import { defineFontProvider } from '@nuxt/fonts/utils' +import type { FontProvider } from '@nuxt/fonts' const resolvableFonts = new Set() -export default defineFontProvider({ +export default { async setup () { // Do some stuff resolvableFonts.add('SomeFontFromCustomProvider') @@ -14,5 +14,5 @@ export default defineFontProvider({ } } }, -}) +} satisfies FontProvider