genshin-langdata
genshin-langdata copied to clipboard
Linux-style environment variables in npm scripts are not supported on Windows
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
"scripts": {
"test": "npm run build && NODE_OPTIONS=--experimental-vm-modules jest",
...
"devDependencies": {
"husky": "^8.0.3",
"lint-staged": "^13.1.2"
}
after
"scripts": {
"test": "npm run build && cross-env NODE_OPTIONS=--experimental-vm-modules jest",
...
"devDependencies": {
"cross-env": "^5.0.5",
"husky": "^8.0.3",
"lint-staged": "^13.1.2"
}