-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the key used for imported files #2
Comments
Just had this problem, was very surprised :/ Wouldn't keeping the keys as paths relative to |
It was just me being dumb. I'll fix it up in a few hours. Unless you want to 😉 |
Sadly I've no time for this now, so it'd be awesome if you could :) |
Actually nvm, I'm preparing the fix right now! |
import-all.macro
version: latestnode
version: latestnpm
(oryarn
) version: latestRelevant code or config:
Let's assume that
some-files
is a directory full of other directories each with anindex.js
. What's going to happen is it'll produce this:Suggested solution:
I'm thinking that the property name should be changed from the filename to the relative path. So it'd be:
I'd love to hear what folks think. cc @threepointone.
This would be a breaking change. I honestly foresaw this, but thought I could avoid it, but I've already bumped into it being annoying so 🤷♂️
The text was updated successfully, but these errors were encountered: