Calling the compiler from nodejs (grunt) #6383
-
I'd like to call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
they should be, here is an example of our sample snapshot test calling it programmatically typespec/packages/samples/src/sample-snapshot-testing.ts Lines 94 to 108 in 60f7bae Please note that typespec compiler and package only use ESM and as we are preparing for 1.0 we are cleaning up which api are exported from the compiler(none of the ones above are affecteced, jjust the ones that shouldn't be used and are exported by mistake) |
Beta Was this translation helpful? Give feedback.
use
NodeHost
if you just want to replicate calling the file system. Otherwise creating your own host is at your own risk of breaking in the future as we add new properties to it.