firebase-to-supabase
firebase-to-supabase copied to clipboard
Inconsistent naming conventions between TS and JS files for Firestore custom processing hooks
The README for the hooks feature of the firestore migration code states that hooks can be created in a js file matching the name of the collection which is being migrated. This is only true though as long as one is running the TS versions of the scripts. The JS version requires the hook file be called ${collectionName}_processDocument.js instead, that last part (_processDocument) being the missing key.
Since I'm not sure which version of the naming y'all would prefer I figured an issue would be best, rather than a PR. Happy to submit the fix if you let me know which naming convention you'd like to move forward with!
Just wanted yo higlight that this @jcquinlan comment issue helped me and a lot, since this is here since 2022 i plan to open a PR for the documentation