Move invoice/tax-breakdown PDF generation into @einfach-produktiv/invoicing
Phase 0 of the e-invoicing migration plan (see the E-Rechnung planning session) — moves invoicePdf.tsx, correctionInvoicePdf.tsx, and taxBreakdown.ts into a new shared package, consumed as a git dependency by both this repo and the payload backend, instead of hand-duplicating the correction-invoice logic between them (see that package's own README for the three real drifts the duplication had already caused). Consumed as raw TS/TSX source via next.config.ts's transpilePackages, not a pre-built package. Needs `git` in the Docker deps stage and a project .npmrc (allow-git=root) to let npm ci fetch a git-URL dependency at all — npm 12+ disables that by default. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,10 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
// Ships as raw TS/TSX source (no build step of its own) — this app's own
|
||||
// bundler needs to transpile it, same as first-party app code, rather
|
||||
// than assuming it's pre-built JS like a normal npm package.
|
||||
transpilePackages: ["@einfach-produktiv/invoicing"],
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user