Add cross-env to allow building on windows too. (#333)

This commit is contained in:
David McGregor
2023-02-28 20:38:25 +11:00
committed by GitHub
parent bb35b88b2e
commit 77acfddfb8
2 changed files with 31 additions and 2 deletions

28
package-lock.json generated
View File

@@ -55,6 +55,7 @@
"@types/marked": "4.0.8", "@types/marked": "4.0.8",
"@types/node": "18.14.2", "@types/node": "18.14.2",
"@typescript-eslint/parser": "5.54.0", "@typescript-eslint/parser": "5.54.0",
"cross-env": "7.0.3",
"eslint": "8.35.0", "eslint": "8.35.0",
"eslint-config-prettier": "8.6.0", "eslint-config-prettier": "8.6.0",
"eslint-config-react-app": "7.0.1", "eslint-config-react-app": "7.0.1",
@@ -6222,6 +6223,24 @@
"node": ">= 6" "node": ">= 6"
} }
}, },
"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": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -21051,6 +21070,15 @@
} }
} }
}, },
"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,
"requires": {
"cross-spawn": "^7.0.1"
}
},
"cross-spawn": { "cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepare": "husky install && npm run build:scripts", "prepare": "husky install && npm run build:scripts",
"start": "GENERATE_SOURCEMAP=false react-scripts start", "start": "cross-env GENERATE_SOURCEMAP=false react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build", "build": "cross-env GENERATE_SOURCEMAP=false react-scripts build",
"build:scripts": "tsc --project tsconfig.scripts.json", "build:scripts": "tsc --project tsconfig.scripts.json",
"test": "react-scripts test --watchAll=false", "test": "react-scripts test --watchAll=false",
"ts:check": "tsc --noEmit", "ts:check": "tsc --noEmit",
@@ -64,6 +64,7 @@
"@types/marked": "4.0.8", "@types/marked": "4.0.8",
"@types/node": "18.14.2", "@types/node": "18.14.2",
"@typescript-eslint/parser": "5.54.0", "@typescript-eslint/parser": "5.54.0",
"cross-env": "7.0.3",
"eslint": "8.35.0", "eslint": "8.35.0",
"eslint-config-prettier": "8.6.0", "eslint-config-prettier": "8.6.0",
"eslint-config-react-app": "7.0.1", "eslint-config-react-app": "7.0.1",