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

any time src/ files change, how do we run a build and also commit dist/? #1347

Closed
trusktr opened this issue Oct 31, 2023 · 2 comments
Closed

Comments

@trusktr
Copy link

trusktr commented Oct 31, 2023

Description

Related to:

Is the question in the title even possible? Or is the design of lint-staged limited and it is not possible?

If it is possible, is there an example somewhere I can take a look at?

@iiroj
Copy link
Member

iiroj commented Nov 1, 2023

Closing this as duplicate of the linked issue

@iiroj iiroj closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
@iiroj
Copy link
Member

iiroj commented Nov 1, 2023

Lint-staged is currently built to run only on the files originally staged for the commit. Any new files created by the task would have to be manually staged.

Maybe you can reduce concurrency to 1 to avoid git race conditions and run git add for the build files.

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

No branches or pull requests

2 participants