diff --git a/bun.lock b/bun.lock index 9baf6a6..8d9cd6b 100644 --- a/bun.lock +++ b/bun.lock @@ -6,6 +6,7 @@ "name": "@grunt-it/fiscalize", "dependencies": { "@e-invoice-eu/core": "^3.1.1", + "@types/node-forge": "^1.3.14", "ajv": "^8.18.0", "ajv-formats": "^3.0.1", "effect": "^3.18.4", @@ -16,7 +17,6 @@ }, "devDependencies": { "@types/bun": "latest", - "@types/node-forge": "^1.3.14", "typescript": "^5", }, }, diff --git a/package.json b/package.json index 9f3681c..2bf71d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grunt-it/fiscalize", - "version": "0.1.0", + "version": "0.1.1", "description": "Private/internal grunt-it Slovenian fiscalization + e-invoicing toolkit (TS/Effect). P1: EN16931 → e-SLOG 2.0 / UBL e-invoice generation + validation, deriving from E-Invoice-EU. Framework-agnostic engine.", "type": "module", "license": "UNLICENSED", @@ -48,11 +48,11 @@ }, "devDependencies": { "@types/bun": "latest", - "@types/node-forge": "^1.3.14", "typescript": "^5" }, "dependencies": { "@e-invoice-eu/core": "^3.1.1", + "@types/node-forge": "^1.3.14", "ajv": "^8.18.0", "ajv-formats": "^3.0.1", "effect": "^3.18.4", diff --git a/src/lib/eslog/validate-eslog.ts b/src/lib/eslog/validate-eslog.ts index c188d41..9b339fc 100644 --- a/src/lib/eslog/validate-eslog.ts +++ b/src/lib/eslog/validate-eslog.ts @@ -1,3 +1,8 @@ +/// +// The reference above carries the `declare module "*.xsd"` ambient into any +// consumer's compilation that loads this file (the engine ships TS source, so a +// consumer's tsc resolves these .xsd text-imports). Keeps consumers from having +// to re-declare the ambient themselves. import { Effect } from "effect"; import { validateXML } from "xmllint-wasm"; import { EInvoiceGenerationError, EslogValidationError, type ValidationIssue } from "../foundation/errors";