You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a check that the path of the ~/bin-prettier.js file with --{any flags (write, check, etc.)} and the files passed does not exceed 8191 per batched format.
if windows os
arrOfFiles = [...]
fileListLength = arrOfFiles.reduce( ( acc, curr ) => acc+curr.length+2, 0) + arrOfFiles.length - 1
`${path-to/bin-prettier.js} --${largest flag}`.length + fileListLength < 8191
The text was updated successfully, but these errors were encountered:
Current Behavior
Running
Nx format
using prettier.js errors with the line"The command line is too long."
I'm assuming this is caused by the current implementation not taking into consideration the maximum command line limit of 8191 characters.
Expected Behavior
Nx format should format any project regardless of path depth.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
Adding a check that the path of the ~/bin-prettier.js file with --{any flags (write, check, etc.)} and the files passed does not exceed 8191 per batched format.
The text was updated successfully, but these errors were encountered: