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
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:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user