Possible to change structure of source files in memory
Is it possible to move/copy files around after project.addExistingSourceFiles("*.ts"); in memory rather than committing to the file system and then build? Current sourceFile.copyImmediately("foo.ts"); makes changes to the file system.
Yes, use .copy instead of .copyImmediately.
I'll update the js docs to make that more clear.
And .move() is available as well?
Yup.
Thanks for the quick reply! :smiley:
No problem! Let me know if you run into any issues or unexpected behaviour. The internals of that part of the library are kind of complex, but it should work well.
Sure, will do!