diff --git a/.changeset/six-spiders-design.md b/.changeset/six-spiders-design.md new file mode 100644 index 0000000..546959b --- /dev/null +++ b/.changeset/six-spiders-design.md @@ -0,0 +1,5 @@ +--- +'astro-vtbot': patch +--- + +fixes `inspectionChamber` endpoint runtime error when using `pnpm` diff --git a/integration/astro-inspection-chamber.js.ts b/integration/astro-inspection-chamber.js.ts index cbec87b..1faec58 100644 --- a/integration/astro-inspection-chamber.js.ts +++ b/integration/astro-inspection-chamber.js.ts @@ -1,6 +1,5 @@ -import { readFileSync } from 'node:fs'; - -const inspectionChamber = readFileSync('node_modules/@vtbag/inspection-chamber/lib/index.js'); +import "astro/client"; +import inspectionChamber from "@vtbag/inspection-chamber?raw"; export async function GET({ params, request }) { return new Response(