ed96d36b54
Validate e-invoices / mustang (push) Successful in 23s
fonts.ts resolved the vendored Liberation Sans .ttf files via
`new URL('./assets/fonts/...', import.meta.url).pathname` — Next.js's
Turbopack/webpack bundler statically rewrites exactly that expression
into its own hashed static-asset system. Harmless in the frontend's own
build, but the Payload backend is also a Next.js app consuming this
package as a node_modules git dependency, where the hash referenced in
the compiled server code didn't match what was actually emitted to disk
— every invoice/correction-invoice admin download failed with
ENOENT: .../LiberationSans-Regular.<hash>.ttf. Not a cache issue,
reproduced identically after a from-scratch --no-cache rebuild. Fixed by
resolving the path via fileURLToPath(import.meta.url) + path.join
instead, which Turbopack does not special-case.
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@einfach-produktiv/invoicing",
|
|
"version": "0.2.8",
|
|
"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"
|
|
}
|
|
}
|