Skip to content

feat: More flexible dirsproperty in config #1827

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

Open
luap2703 opened this issue Mar 27, 2025 · 0 comments
Open

feat: More flexible dirsproperty in config #1827

luap2703 opened this issue Mar 27, 2025 · 0 comments

Comments

@luap2703
Copy link

Is your feature request related to a problem? Please describe.

Currently, the dirs directory in config only support parent-level directories of task files. It would be really helpful to also target specific files (not dirs) using a glob pattern (similar to ignorePatterns). Something like...

 dirs: [ "./packages/**/task.ts"],

...is currently not supported, right?

Describe the solution you'd like to see

As we have quite a lot of packages with smaller tasks relating to some utility functions, it would be good if we could target these files by name while keeping them next to their runtime code. While storing all tasks in one parent folder is probably a great praxis, for our project structure, it would help a lot.

Describe alternate solutions

Smth like autoselecting [taskname].task.ts or [taskname].trigger.ts would also be helpful.

Additionally, a "softDirectory" flag or smth similar would also be helpful, since we also ran into some similar errors as #1823 when non-task files are placed in a targeted directory.

Additional information

No response

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

1 participant