You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very strange. Updating files without creating a new folder definitely should work. That's in fact the default mode of operation, when we store the type files in the same folder as the logics.
What OS are you using? I have only tested this on a Mac OS and Linux myself.
What Node version are you using? It should support the recursive: true option in fs.mkdirSync
Also, I have recently updated the recommended setup for typegen. While the docs earlier suggested putting all the types in a different folder, I've found it to be a better experience overall if the types are in the same folder, but excluded from git by adding *Type.ts into .gitignore.
@mariusandra sorry for this late response. I was working on Windows through an IntelliJ IDE, but I think I was running it through WSL2 using Ubuntu. It's possible that the issue was due to some weird configuration across that boundary.
@mariusandra I was wondering if its possible to customize the types folder even more like having a local subfolder and custom name for the types example ./**/__types__/*.types.ts so the structure would look something like:
Bug description (include screenshots or a GIF screencast)
Using the
watch
orwrite
commands fail with the following error if the directory identified in thetypesPath
property of.kearc
already exists;How to reproduce
kea
&kea-typegen
)kea-typegen write
twice OR create a new type definition, save, modify the type and save again.Expected behavior
If the directory already exists then existing definitions should be updated and new definitions should be added without any complications.
Environment
kea-typegen
version:^0.5.1
kea
version:^2.2.2
typescript
version:^4.1.2
The text was updated successfully, but these errors were encountered: