You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+39-32Lines changed: 39 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,59 +9,66 @@ FiscalAPI SDK for Node.js - Official TypeScript SDK for Mexican electronic invoi
9
9
## Build Commands
10
10
11
11
```bash
12
-
npm run build # Full build: clean + esm + cjs + types
13
-
npm run build:esm # TypeScript to ES Modules (dist/esm)
14
-
npm run build:cjs # TypeScript to CommonJS (dist/cjs)
15
-
npm run build:types # TypeScript declaration files (dist/types)
12
+
npm run build # Full build: clean + cjs + esm + package-json markers
13
+
npm run build:esm # TypeScript → ES Modules (dist/esm), then fix-esm-imports.js adds .js extensions
14
+
npm run build:cjs # TypeScript → CommonJS (dist/cjs)
16
15
npm run clean # Remove dist directory
17
-
npm test# Run Jest tests
18
-
npm run lint # ESLint on src/**/*.ts
16
+
npm test# Run Jest (note: jest not in devDependencies yet)
17
+
npm run lint # ESLint on src/**/*.ts (note: eslint not in devDependencies yet)
19
18
npm run main # Run examples/main.ts with ts-node
20
19
```
21
20
21
+
There is no `build:types` script — the full `build` script handles CJS + ESM + dual-package markers via `build:package-json` (creates `dist/cjs/package.json` with `"type":"commonjs"` and `dist/esm/package.json` with `"type":"module"`).
22
+
22
23
## Architecture
23
24
24
-
**Facade Pattern**: `FiscalapiClient` is the main entry point exposing all services:
25
-
-`invoices` - CFDI invoice creation, cancellation, PDF generation
0 commit comments