mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 00:59:50 +00:00
- Add tRPC server setup with NestJS (nestjs-trpc) - Create AccountsTrpcRouter with CRUD operations - Add tRPC client configuration in webapp - Create tRPC React hooks for accounts module - Replace existing REST hooks with tRPC hooks across 35+ files - Maintain backward compatibility with existing REST API - Add proper cache invalidation for mutations New files: - packages/server/src/modules/Trpc/* - packages/webapp/src/trpc.ts - packages/webapp/src/hooks/trpc/* - shared/bigcapital-utils/src/trpc.ts Dependencies added: - @trpc/server, @trpc/client, @trpc/react-query - nestjs-trpc, superjson - @tanstack/react-query Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
657 B
JSON
27 lines
657 B
JSON
{
|
|
"name": "@bigcapital/utils",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"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": {
|
|
"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": {
|
|
"@trpc/server": "^11.10.0"
|
|
}
|
|
}
|