ts-morph icon indicating copy to clipboard operation
ts-morph copied to clipboard

Emit changes without saving to filesystem

Open sajal50 opened this issue 8 years ago • 2 comments

Is it possible to emit() changes without calling project.save()? save() commits all the changes to the filesystem. I wish to emit() without saving the changes to the filesystem.

sajal50 avatar Aug 22 '18 22:08 sajal50

I see you found out.

For anyone else: it's actually a commonish question and the answer is yes. Just call .emit() without calling .save() 😃

dsherret avatar Aug 23 '18 01:08 dsherret

Yeah, that was my bad. Thanks :smiley:

sajal50 avatar Aug 23 '18 13:08 sajal50