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

Tailwindcss CLI Standalone should exit with non-zero code on error #10702

Closed
alexandremjacques opened this issue Feb 28, 2023 · 1 comment · Fixed by #10703
Closed

Tailwindcss CLI Standalone should exit with non-zero code on error #10702

alexandremjacques opened this issue Feb 28, 2023 · 1 comment · Fixed by #10703
Assignees

Comments

@alexandremjacques
Copy link

alexandremjacques commented Feb 28, 2023

What version of Tailwind CSS are you using?
3.2.4

What build tool (or framework if it abstracts the build tool) are you using?
Dart Saas

What version of Node.js are you using?
19.7.0

What browser are you using?
Not relevant

What operating system are you using?
macOS

Reproduction URL
Not relevant

Describe your issue
Whenever I use the Tailwind CSS Standalone CLI and I have a syntax error on my input file (-i), the tool reports and error but exits with code 0 from the command line (images bellow).

For automation purposes (I use this tool with PyCharm's File Watchers to generate the final .css) it would be useful and important.

SCR-20230228-fg7

SCR-20230228-fcy

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #10703 by exiting with 1 in case of an error, and will be available in the next release.

You can already try it by using the insiders build npm install tailwindcss@insiders, however we currently don't ship the Tailwind CSS Standalone CLI for insiders builds.

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

Successfully merging a pull request may close this issue.

2 participants