Skip to content
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

Some files seem to be ignored by the glob pattern #13

Open
joaonevesvisualnuts opened this issue Oct 22, 2022 · 2 comments
Open

Some files seem to be ignored by the glob pattern #13

joaonevesvisualnuts opened this issue Oct 22, 2022 · 2 comments

Comments

@joaonevesvisualnuts
Copy link

Command: tsuml2 --glob \"./src/**/!(*.d|*.spec).ts\"
It's currently showing very few of the interfaces I have defined, I'm not sure why...

@demike
Copy link
Owner

demike commented Oct 25, 2022

Can you provide a minimal example that reproduces the problem?

@joaonevesvisualnuts
Copy link
Author

joaonevesvisualnuts commented Oct 27, 2022

I think it has to do with the package I'm building. It's a little bit hard to explain, but I think because I export all the interfaces/classes in the same object, it bundles them all together into a default entity in the diagram.
For example, let's say I have this folder structure:

> package
> > index.ts <---- bundles all the classes together into an object
> > type1Classes
> > > Class1.ts <--- class that contains function x1()
> > type2Classes
> > > Class2.ts <--- class that contains function x2()

And index.ts is something like this:

const package = {
    Class1: require('type1Classes/Class1'),
    Class2: require('type2Classes/Class2')
};
export default package;

Then when I run tsuml2 --glob \"./package/**/!(*.d|*.spec).ts\" I get one of the entities in the diagram looking like this:

default:
   x1()
   x2()

Maybe it doesn't distinguish objects from classes or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants