dot in filename breaks filesystem mode
MikeMitterer opened this issue · comments
Thanks for this module!
I use the following command:
barrelsby --delete -d src/main --exclude ConfigLog4j --exclude 'events/utils' -l top -s filesystem
My dir structure:
main
learn
obects.and.types.ts
The generated index.tx
import * as learnobjectsandtypests from "./learn/objects.and.types";
export const learn = {
function.exports: learnfunctionexportsts,
objects.and.types: learnobjectsandtypests,
};
Properties in "learn" with dots are not allowed.
Thanks for the bug report 👍
When we fix this, we should probably strip out any characters that are not alphanumeric.
I'm also having this issue for .tsx files
import * as articlescreatetsx from "./articles/create";
export const articles = {
create.tsx: articlescreatetsx,
};
Also any issue for "-" characters. Is there a PR in works for this, or, where can it be resolved?
I fixed this issue by _.camelCase(key)
. You can use: @vjpr/barrelsby@2.2.0-vjpr.0
No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator