You do not put your dependent's W-2 information on your return.
If your unmarried dependent's W-2 earnings exceed his/her standard deduction ($12,000 in 2018), they should file their own return and report the W-2 on their return.
But even if your dependent didn't earn enough to be required to file, s/he may want to file a return to recover any withholdings.