packages/upgrade/README.md
run locally with source files
DEV=1 pnpx tsx path/to/bin/index.ts
# example
cd examples/minimal-react/client && DEV=1 pnpx tsx ../../../packages/upgrade/src/bin/index.ts --force --skipTanstackQuery --verbose
or compiled
cd packages/upgrade
pnpm build && pnpm link .
# in an app somewhere
pnpm link @trpc/upgrade && pnpm trpc-upgrade
A test is a composite of up to 4 files:
myTest.tsx defines a component to transformmyTest.snap.tsx stores the output of the transform using standard vitest snapshot testingmyTest.trpc.tsx (Optional) stores your trpc appRouter config and test servermyTest.spec.tsx (Optional but recommended) a function which will test both the input and transformed components