-
Notifications
You must be signed in to change notification settings - Fork 16
Completed funcNameFromRelPathDefault #19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
Runs successfully in emulation; have yet to deploy properly. Mis-read logs ealier. |
Deploy successful. Issue was unrelated (exact format of firebase-admin initializeApp - I use a centralized wrapper module for all firebase operations). Pull request valid. |
This is the only PR which I havent been able to merge yet. Please check if this change still applies to the latest version. |
So: I ended up converting to JS, since this was the only TS portion of my codebase. BUT I also both simplified it, and detected if the actual filename was "index.{wev}" - tossing that part if it was. I also did NOT reassemble with {sep} only to split it and rejoin it again later. If you never use "index.js" under a named directory, then my addition is not relevant. So I ended up:
|
This still appears to be an issue for me using the latest release. Here's what I need to do in order to get it working:
Without that, I receive the following error:
|
One issue, one style; both resolved by simplifying code:
Issue: the last replace, because it was a value not a regex, only replaced the first instance
Style: the string was already split; why .join(sep) only to .replace(`/${sep}/g, "-") later?
SO: split, then join("-"), then no need to replace.
Ran what tests I could (apparently don't have the full sample/test environment), but also tested "in the field" (emulator and deploy).