-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
postinstall script ansi color doesn't work #6124
Comments
We currently collapse the output of postinstall scripts. Colours only work if stdio inherit is used, when executing the child process for postinstall. So in order to do it we'd have to change how we print the output of the scripts. |
@zkochan So, why not |
It will be very helpful for |
@zkochan if you have a plan how to do it, I can send a developer do implement it. |
Most of colors libraries (chalk, picoolors, colorette, kleur) don’t detect color support in collapsed mode because If I do |
You can force colours. |
Yes, it’s fine for short-term solution. What do you think of running scripts with |
nx uses it for the same purpose? |
Oops, it was NxShell, not nx. But they have a solid list of users (mostly terminals like Terminal panel in VS Code). |
I see that it has some built dependencies
This is problematic. We have many installation methods and currently they are simple because don't need a build step. But this new dependency would break a lot of things. I don't think we can use it. |
OK, colorless output is not big deal. Let’s wait for some solution in the future. |
pnpm version: 7.27.1
Code to reproduce the issue: https://github.com/tjx666/pnpm-postinstll-script-ansi-issue
Expected behavior:
after
pnpm install
:Actual behavior:
Additional information:
The text was updated successfully, but these errors were encountered: