I think Twilight was the first novel from the author and she pretty much wrote a transcript, and got a book deal off the back of it. She had little previous experience in writing novels and was just very, very lucky that it happened to all fall in to place... some first time novelists spend years trying to do what she did.