Add cross-env allowing windows

platform to run web-chat example
This commit is contained in:
akugone 2023-09-22 09:30:56 +02:00
parent 7c24ffa3bf
commit cf4335838e
No known key found for this signature in database
GPG Key ID: 622AE3F8F95CD5FD
2 changed files with 21 additions and 1 deletions

View File

@ -27,6 +27,7 @@
"@types/node": "^17.0.45",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"cross-env": "^7.0.3",
"cspell": "^6.14.3",
"gh-pages": "^4.0.0",
"npm-run-all": "^4.1.5",
@ -8456,6 +8457,24 @@
"node": ">=10"
}
},
"node_modules/cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"dependencies": {
"cross-spawn": "^7.0.1"
},
"bin": {
"cross-env": "src/bin/cross-env.js",
"cross-env-shell": "src/bin/cross-env-shell.js"
},
"engines": {
"node": ">=10.14",
"npm": ">=6",
"yarn": ">=1"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@ -23,6 +23,7 @@
"@types/node": "^17.0.45",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"cross-env": "^7.0.3",
"cspell": "^6.14.3",
"gh-pages": "^4.0.0",
"npm-run-all": "^4.1.5",
@ -34,7 +35,7 @@
"url": "^0.11.0"
},
"scripts": {
"start": "GENERATE_SOURCEMAP=false PORT=3003 react-scripts start",
"start": "cross-env GENERATE_SOURCEMAP=false PORT=3003 react-scripts start",
"build": "react-scripts build",
"test:unit": "exit 0",
"fix": "run-s fix:*",