feat(pdf): migrate PDF generation to @mintel/pdf package
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Failing after 1m3s
Build & Deploy / 🏗️ Build (push) Failing after 3m5s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-12 21:46:46 +01:00
parent 7225efb0ea
commit 0fed92ca8c
23 changed files with 101 additions and 2447 deletions

View File

@@ -7,8 +7,8 @@ import { execSync } from "node:child_process";
import axios from "axios";
import { FileCacheAdapter } from "../src/utils/cache/file-adapter.js";
import { initialState, PRICING } from "../src/logic/pricing/constants.js";
import { calculateTotals } from "../src/logic/pricing/calculator.js";
import { initialState, PRICING } from "@mintel/pdf";
import { calculateTotals } from "@mintel/pdf";
async function main() {
const OPENROUTER_KEY = process.env.OPENROUTER_KEY;

View File

@@ -4,9 +4,8 @@ import * as readline from "node:readline/promises";
import { fileURLToPath } from "node:url";
import { createElement } from "react";
import { renderToFile } from "@react-pdf/renderer";
import { calculateTotals } from "../src/logic/pricing/calculator.js";
import { calculateTotals, initialState, PRICING } from "@mintel/pdf";
import { CombinedQuotePDF } from "../src/components/CombinedQuotePDF.js";
import { initialState, PRICING } from "../src/logic/pricing/constants.js";
import {
getTechDetails,
getPrinciples,