-
Notifications
You must be signed in to change notification settings - Fork 13
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
Linux-style environment variables in npm scripts are not supported on Windows #189
Comments
So this time, I want to solve this problem by migrating to Vitest or using WSL. |
Closing for now. |
FYI. I have migrated from Jest to Vitest. |
Does this issue still affect on your end? Even if WSL is available on your end, I have noticed it might be a bit troublesome for Windows-based developers to set up WSL just for npm scripts. I still use I recently consider running npm scripts on another shell called NuShell. Do you think it works for you? |
Thank you for your response. |
My concern was Do you run lint on your local machine? If you don't, I guess I don't have to fix this issue for now. |
Currently, eslint does not work unless you install WSL.
Also, if "git config core.autocrlf" is set to true, you will need to remove the following line from .editorconfig.
I run the tests all the time. console log
|
Thanks, looks like a Windows-specific npm script is required to lint on Windows as expected... I'm also considering to convert JSON5s to TypeScript. By the migration to TypeScript,
Oops, I didn't expect such problem. I usually add .gitattributes as follows so that Git converts any crlf linebreaks to lf on the commit:
By adding .gitattributes, you might no longer have to remove I just noticed .gitattributes is not in the genshin-langdata repo, so I will add it later. |
I have separated the |
Problem
Currently, when I run test in a Windows environment, it fails.
Suggestion
If you introduce "cross-env", you will be able to execute test independently of the OS.
now
package.json
after
The text was updated successfully, but these errors were encountered: