If he's massing scouts that means don't get anything with light armor.
I will tell you flak are a great counter to scouts. Flak have so much armor and do decent damage against light armor. I'd say ur best bet is to use flak and see if you drop a starbase on his ass.
Don't be scared of getting fighters. You have to remember that 1 carrier is 14 ship slots. 7 scouts is 14 ship slots. 7 scouts will never take out a carrier quickly. 50 won't for that matter. Take a look at his # of scouts and multiply by 2. That's the # of ship slots he's using. You want to equal that in carrier production.
You can try building static defences (turrets w/ multiple repair bays), but against TEC he will get the bomb ability which screws that idea.
Getting a Devastator isn't a bad idea. Nor is a Desolator.