Package Exports
- @stryke/trpc-next
- @stryke/trpc-next/action-handler
- @stryke/trpc-next/client
- @stryke/trpc-next/index
- @stryke/trpc-next/package.json
- @stryke/trpc-next/server
- @stryke/trpc-next/shared
- @stryke/trpc-next/tanstack-query/client
- @stryke/trpc-next/tanstack-query/server
- @stryke/trpc-next/types
Readme
Stryke - tRPC NextJs Package
A package to help in using tRPC in modern NextJs applications
Installing
Using pnpm:
pnpm add -D @stryke/trpc-next
Using npm
npm install -D @stryke/trpc-next
Using yarn
yarn add -D @stryke/trpc-next
Reduced Package Size
This project uses tsup to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects.
Development
This project is built using Nx. As a result, many of the usual commands are available to assist in development.
Building
Run nx build trpc-next
to build the library.
Running unit tests
Run nx test trpc-next
to execute the unit tests via Jest.
Linting
Run nx lint trpc-next
to run ESLint on the package.