From d86777fdaeee86079e0a6c31c9e15703872e9f65 Mon Sep 17 00:00:00 2001 From: "create-issue-branch[bot]" <53036503+create-issue-branch[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 08:14:00 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Chore:=20add=20imports=20fo?= =?UTF-8?q?r=20user=20Customizations=20(#7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create draft PR for #6 [skip ci] * Update package.json and pnpm-lock.yaml --------- Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com> Co-authored-by: Adam Matthiesen --- .changeset/lucky-ligers-confess.md | 5 +++++ package/package.json | 8 +++++--- pnpm-lock.yaml | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .changeset/lucky-ligers-confess.md diff --git a/.changeset/lucky-ligers-confess.md b/.changeset/lucky-ligers-confess.md new file mode 100644 index 0000000..1dd882c --- /dev/null +++ b/.changeset/lucky-ligers-confess.md @@ -0,0 +1,5 @@ +--- +"@matthiesenxyz/astro-hashnode": patch +--- + +adds exports for HashnodeAPI, as well as components so users can import the pre-built components for their own layout diff --git a/package/package.json b/package/package.json index b1e8cea..2a512e1 100644 --- a/package/package.json +++ b/package/package.json @@ -30,7 +30,9 @@ "src" ], "exports": { - ".": "./src/index.ts" + ".": "./src/index.ts", + "./api": "./src/hn-gql/index.ts", + "./components/*": "./src/components/*" }, "scripts": {}, "type": "module", @@ -42,13 +44,13 @@ }, "dependencies": { "@tailwindcss/vite": "4.0.0-alpha.7", - "astro-font": "0.0.77", + "astro-font": "^0.0.77", "astro-integration-kit": "^0.5.1", "astro-remote": "^0.3.2", "astro-seo": "^0.8.3", "graphql": "^16.8.1", "graphql-request": "^6.1.0", - "picocolors": "1.0.0", + "picocolors": "^1.0.0", "tailwindcss": "4.0.0-alpha.7", "ultrahtml": "^1.5.3" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8aade36..b7d2aef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: specifier: '>=4.4.1' version: 4.4.15(@types/node@20.11.25)(typescript@5.4.2) astro-font: - specifier: 0.0.77 + specifier: ^0.0.77 version: 0.0.77 astro-integration-kit: specifier: ^0.5.1 @@ -42,7 +42,7 @@ importers: specifier: ^6.1.0 version: 6.1.0(graphql@16.8.1) picocolors: - specifier: 1.0.0 + specifier: ^1.0.0 version: 1.0.0 tailwindcss: specifier: 4.0.0-alpha.7