feat: migrate typecheck to tsgo for faster type checking (#17331)
## Summary - Switch `twenty-server` and `fireflies` typecheck from tsc to tsgo (~75x faster) - Enable tsgo in VSCode via `typescript.experimental.useTsgo` setting - Add `@ts-nocheck` to `remove-step.spec.ts` to work around tsgo performance issue with deep spread operations ## Performance | Package | Before (tsc) | After (tsgo) | |---------|-------------|--------------| | `twenty-server` | ~150s | ~2s | | `twenty-front` | ~40s | ~2s | ## Related - Workaround for: https://github.com/microsoft/typescript-go/issues/2551 ## Test plan - [x] `npx nx typecheck twenty-server` passes - [x] `npx nx typecheck twenty-front` passes - [x] `npx nx run-many --target=typecheck --exclude=fireflies` passes (fireflies has pre-existing type errors)
This commit is contained in:
+4
@@ -1,3 +1,7 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-nocheck
|
||||
// Disabled type checking due to tsgo performance issue with deep spread operations
|
||||
// See: https://github.com/microsoft/typescript-go/issues/2551
|
||||
import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';
|
||||
|
||||
import { removeStep } from 'src/modules/workflow/workflow-builder/workflow-version-step/utils/remove-step';
|
||||
|
||||
Reference in New Issue
Block a user