statelyai / xstate-tools

Public monorepo for XState tooling
183 stars 36 forks source link

Add Option to Not Write "tsTypes: {} as import("./index.typegen").Typegen0" #350

Open dylanarmstrong opened 1 year ago

dylanarmstrong commented 1 year ago

Feature Request

Currently, every time typegen runs, it will write this line. This line is invalid when compiling against node16 as it needs to be ./index.typegen.js.

Once I've already added the line, I'd like to turn off writing this line when watch triggers.

Andarist commented 1 year ago

I'm not sure what you are asking here since you also opened another issue that is highly related to this one. How this one is different from that other one?

dylanarmstrong commented 1 year ago

This is a feature request to disable writing the line entirely, and just generate the typegen file. The other issue was about the file extension missing from the import itself, which was causing issues on node16 for me.