Dylan Merigaud

Results 5 comments of Dylan Merigaud

@gustavopch ![image](https://user-images.githubusercontent.com/1936984/190988005-8e0a77ae-6f04-40c4-962d-e6dfb7e9d956.png) `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

```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...