Skip to content

Commit f58a85e

Browse files
jleclancheclaude
andcommitted
be-vat-account: expose the pure helpers on their own subpaths
The single entry point statically imports `unpdf`, so a consumer that only wants `parseLocalizedAmount` dragged 1.59 MB of PDF machinery into its browser bundle — measured in financica, where the amount parser is reachable from a client component and Turbopack did not shake the barrel despite `sideEffects: false`. `./amount` and `./operations` are pure and reference nothing else. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFh8XQkb5TQASLPVHp4jdF
1 parent e50e95c commit f58a85e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

packages/be-vat-account/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@financica/be-vat-account",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Parser for the Belgian VAT current-account statement (Extrait de compte TVA / Uittreksel btw-rekening) issued by the FPS Finance — PFORM671 and legacy layouts, French and Dutch.",
55
"keywords": [
66
"accounting",
@@ -44,6 +44,16 @@
4444
"import": "./dist/index.js",
4545
"require": "./dist/index.cjs"
4646
},
47+
"./amount": {
48+
"types": "./dist/amount.d.ts",
49+
"import": "./dist/amount.js",
50+
"require": "./dist/amount.cjs"
51+
},
52+
"./operations": {
53+
"types": "./dist/operations.d.ts",
54+
"import": "./dist/operations.js",
55+
"require": "./dist/operations.cjs"
56+
},
4757
"./package.json": "./package.json"
4858
},
4959
"publishConfig": {

packages/be-vat-account/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from "tsdown";
22

33
export default defineConfig({
4-
entry: ["src/index.ts"],
4+
entry: ["src/index.ts", "src/amount.ts", "src/operations.ts"],
55
format: ["esm", "cjs"],
66
dts: true,
77
sourcemap: true,

0 commit comments

Comments
 (0)