87cf1db330
Validate e-invoices / mustang (push) Successful in 25s
The v0.2.8 fileURLToPath fix (for a Turbopack asset-hash bug in the Payload backend) wrongly assumed fonts.ts never reaches a browser bundle. It does: einfach-produktiv's LiveCompanySettingsPreviewClient renders <InvoiceDocument> client-side, and several Client Components pull this module in transitively via the index.ts barrel just by importing computeTaxBreakdown. fileURLToPath isn't a real function in a browser's node:url shim, so calling it unconditionally at module scope crashed module evaluation for any client bundle that included it — including einfach-produktiv's entire /cart page. Fix: branch on typeof window === "undefined" — browser keeps the original new URL(..., import.meta.url) idiom (correctly asset-hashed by Turbopack for a consumer's own build), Node.js keeps the fileURLToPath/path.join resolution from v0.2.8. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@einfach-produktiv/invoicing",
|
|
"version": "0.2.9",
|
|
"private": true,
|
|
"description": "Shared invoice / correction-invoice (Stornorechnung, Gutschrift) PDF generation and VAT-breakdown math, consumed as a git dependency by both the einfach-produktiv frontend and the payload backend — not published to npm.",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./einvoice": {
|
|
"types": "./src/einvoice/index.ts",
|
|
"default": "./src/einvoice/index.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "eslint .",
|
|
"fixtures:einvoice": "tsx scripts/generate-einvoice-fixtures.mts"
|
|
},
|
|
"peerDependencies": {
|
|
"@react-pdf/renderer": "^4.0.0",
|
|
"react": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@react-pdf/renderer": "^4.5.1",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"eslint": "^9",
|
|
"react": "^19.2.4",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.10"
|
|
},
|
|
"dependencies": {
|
|
"@e-invoice-eu/core": "^3.1.1"
|
|
}
|
|
}
|