1
0
Files
bigcapital/shared/sdk-ts/package.json
T
Ahmed Bouhuolia e3c55c5d6f feat(sdk): add OpenAPI export script and TypeScript SDK package
- Add export-openapi.ts script for server OpenAPI spec export
- Add shared/sdk-ts package with generated API clients (accounts, bills, customers, vendors, etc.)
- Update Customers and Vendors controllers
- Update ReportsEventsTracker
- Update .gitignore, package.json, and pnpm-lock

Made-with: Cursor
2026-03-03 23:26:24 +02:00

33 lines
1.1 KiB
JSON

{
"name": "@bigcapital/sdk-ts",
"version": "1.0.0",
"description": "TypeScript types generated from the Bigcapital API OpenAPI/Swagger spec",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"scripts": {
"generate": "node -e \"if(!require('fs').existsSync('./openapi.json')){console.error('\\n openapi.json not found. Run from repo root: pnpm run generate:sdk-types\\n'); process.exit(1)}\" && npx openapi-typescript ./openapi.json -o ./src/schema.ts",
"build:cjs": "tsup src/index.ts --format cjs --dts --sourcemap",
"build:esm": "tsup src/index.ts --format esm --dts --sourcemap",
"build": "npm run build:cjs && npm run build:esm",
"dev": "npm run build -- --watch"
},
"author": "",
"license": "ISC",
"dependencies": {
"openapi-typescript-fetch": "^2.2.1"
},
"devDependencies": {
"openapi-typescript": "^7.0.0",
"tsup": "^8.3.0",
"typescript": "^5.1.3"
}
}