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

Feature: sort filenames when defining a pattern. #544

Closed
inglkruiz opened this issue Apr 19, 2023 · 2 comments
Closed

Feature: sort filenames when defining a pattern. #544

inglkruiz opened this issue Apr 19, 2023 · 2 comments
Milestone

Comments

@inglkruiz
Copy link
Contributor

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

1st thanks for this useful tool. I would like to ask/request if it's possible to sort the seed files when defining a seed pattern.

Describe the solution you'd like

I'm thinking about naming the file starting with numbers so that locter package or this package after resolving the files, sorts by filename.

Imaging I have my seeders named 0_token-mint.seed.ts and 1_token-price.seed.ts therefore they run sequentially cuz token price depends on token mint. I think this should work along with parallelExecution: false and be documented.

Describe alternatives you've considered

I could order my seeds using an array but I found more Dev friendly to use filenames.

Additional context

N/A

@inglkruiz inglkruiz changed the title Feature: Feature: sort filenames when defining a pattern. Apr 19, 2023
@tada5hi tada5hi added this to the v3 milestone Apr 19, 2023
@tada5hi
Copy link
Owner

tada5hi commented Apr 19, 2023

You are very weclome!
I like the suggestion 😊. Would you like to implement the feature yourself, otherwise I would take care of it.

@inglkruiz
Copy link
Contributor Author

I'll do it. It does not seem to be very difficult.

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