2b4b2eb91f
Validate e-invoices / mustang (push) Successful in 23s
Unifies logic that was hand-duplicated (and, for PLZ, actually inconsistent) between the backend and frontend repos — both explicitly flagged this drift risk in their own code comments. vies.ts stays behind a separate ./vies subpath (server-only by convention, unlike the client-safe main barrel). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"name": "@einfach-produktiv/invoicing",
|
|
"version": "0.3.0",
|
|
"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"
|
|
},
|
|
"./vies": {
|
|
"types": "./src/vies.ts",
|
|
"default": "./src/vies.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"
|
|
}
|
|
}
|