Dylan Merigaud
Dylan Merigaud
@gustavopch  `const { status } = spawnSync( "tsc", ['-p', tmpTsconfigPath, ...remainingArgsToForward], { stdio: 'inherit' }, )` (original is https://github.com/gustavopch/tsc-files/blob/master/lib/index.js#L44) I managed to make it work with this code, since...
``` #!/bin/sh if [ ! -f "$(dirname "$0")/_/husky.sh" ]; then exit 0 fi . "$(dirname "$0")/_/husky.sh" yarn lint-staged ``` Btw here is my .husky/pre-commit file, you must use yarn there
Thanks a bunch @pastouret !
```tsx const handler = createNextHandler( apiContract, { tasks: tasksRouter, webhooks: webhooksRouter, }, { handlerType: "app-router", responseValidation: true, errorHandler: globalErrorHandler, } ); /* * This is a workaround to validate the...
Just had to implem stripe and my previous example didn't worked here is my new one ``` tsx app/api/v1/[...ts-rest]/route.ts /* * This is a workaround to validate the webhook signature...