Waterproof the roof first. Overlap tar paper shingles for full coverage, then fasten securely. Seal all seams and joints with exterior caulk. Use weather-resistant wood like cedar for optimal durability.
Routinely check for leaks after storms and make repairs promptly. A little vigilance preserves your treehouse against the elements.