This question already has an answer here:
I will be travelling soon to the US from Jakarta. I have both US and Indonesian passports. Indonesia does not recognise dual citizenship, yet the US requires me to enter and exit the US with my US passport. I've read that I can go to Singapore first and then fly out to the US. But which passports to use and how?