fix: restore PDF exports in development

Import the server image reader with its explicit TypeScript extension so tsx does not resolve it as a native addon. Use the workspace automatic JSX configuration for the dev server so shared PDF components do not fall back to React.createElement.
This commit is contained in:
Amruth Pillai
2026-10-02 02:11:35 +02:00
parent 419c7309af
commit 48d024cf3c
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"type": "module",
"private": true,
"scripts": {
"dev": "tsx watch src/index.ts",
"dev": "tsx watch --tsconfig ../../tsconfig.json src/index.ts",
"build": "tsdown",
"start": "node dist/index.mjs",
"docs:gen": "tsx src/openapi/generate-spec.ts",
+1 -1
View File
@@ -4,7 +4,7 @@ import type { ResumeData } from "@reactive-resume/schema/resume/data";
import type { Template } from "@reactive-resume/schema/templates";
import * as forme from "@formepdf/core";
import { parseResumeData } from "@reactive-resume/schema/resume/data";
import { readServerImage } from "./forme/images.node";
import { readServerImage } from "./forme/images.node.ts";
import { assertPdfText, renderResume } from "./forme/render";
export type CreateResumePdfFileOptions = {
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "@reactive-resume/config/tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"strict": true
}
}