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
// somewhere elseimport{COLLECTION_ACCOUNTS}from"@<project>/fauna"// .. do something with it
I do that because I ran into problems because I could not keep my naming consistent.
Anyways, fauna-schema-migrate detects the index.ts file and obviously does not see a default export and it throws the EmptyResourceFileError. A workaround would be to create the index.ts outside of resources but it would be nice to maybe add a flag to ignore index files or even better patterns of files.
Let me know what you think and I can create a PR.
The text was updated successfully, but these errors were encountered:
I settled on a pattern similar to this for my collections and indices
I do that because I ran into problems because I could not keep my naming consistent.
Anyways, fauna-schema-migrate detects the
index.ts
file and obviously does not see a default export and it throws theEmptyResourceFileError
. A workaround would be to create theindex.ts
outside of resources but it would be nice to maybe add a flag to ignore index files or even better patterns of files.Let me know what you think and I can create a PR.
The text was updated successfully, but these errors were encountered: