CI timing out on typescript / react build

we’ve had a flawless react/javascript build CI/CD pipeline running for a year or so, but since we’ve switched to typescript we’re getting consistent time outs on npm run build (it builds perfectly in other environments). We’ve tried clearing the caches and changing the base docker image (it’s running off node:current), any other suggestions?