From 037658842eaf741cde32c24dd26fdea6a2ef7d44 Mon Sep 17 00:00:00 2001 From: Edvinas Jurele Date: Wed, 20 Dec 2023 16:05:06 +0200 Subject: [PATCH] fix: format code --- demo/src/layouts/Layout.astro | 13 ++++++++++--- lib/package.json | 8 ++++---- lib/src/utils/resolveRichTextToNodes.spec.ts | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/demo/src/layouts/Layout.astro b/demo/src/layouts/Layout.astro index 8195030..ce2a2ac 100644 --- a/demo/src/layouts/Layout.astro +++ b/demo/src/layouts/Layout.astro @@ -6,7 +6,7 @@ export interface Props { const { title } = Astro.props; --- - + @@ -25,7 +25,14 @@ const { title } = Astro.props; background-color: #f6f6f6; } code { - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, - DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; + font-family: + Menlo, + Monaco, + Lucida Console, + Liberation Mono, + DejaVu Sans Mono, + Bitstream Vera Sans Mono, + Courier New, + monospace; } diff --git a/lib/package.json b/lib/package.json index 1b9247a..735ffa8 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,7 +1,6 @@ { "name": "storyblok-rich-text-astro-renderer", "version": "2.0.0", - "type": "module", "description": "Renders Storyblok rich text content to Astro elements.", "keywords": [ "storyblok", @@ -20,6 +19,7 @@ }, "license": "MIT", "author": "Edvinas Jurele", + "type": "module", "exports": { ".": { "import": "./dist/index.mjs", @@ -62,10 +62,10 @@ "peerDependencies": { "astro": "^3.0.0 || ^4.0.0" }, - "publishConfig": { - "access": "public" - }, "volta": { "node": "18.12.1" + }, + "publishConfig": { + "access": "public" } } diff --git a/lib/src/utils/resolveRichTextToNodes.spec.ts b/lib/src/utils/resolveRichTextToNodes.spec.ts index 5195187..1240452 100644 --- a/lib/src/utils/resolveRichTextToNodes.spec.ts +++ b/lib/src/utils/resolveRichTextToNodes.spec.ts @@ -848,7 +848,7 @@ describe("resolveMark", () => { blue: "this-is-blue", red: "this-is-red", pink: "this-is-pink", - }[color]); + })[color]; return { props: {