genshin-langdata icon indicating copy to clipboard operation
genshin-langdata copied to clipboard

Linux-style environment variables in npm scripts are not supported on Windows

Open yasuking0304 opened this issue 11 months ago • 9 comments

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"
  }

yasuking0304 avatar Mar 27 '24 05:03 yasuking0304