Use cross-env to pass env vars (#2610)

This commit is contained in:
Krzysztof Żuraw 2022-11-21 11:52:35 +01:00 committed by GitHub
parent 056aab2560
commit 3247131570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4519 additions and 15513 deletions

View file

@ -32,7 +32,7 @@ These instructions will get you a copy of the project up and running on your loc
### Prerequisites ### Prerequisites
- Node.js v14+ - Node.js v18+
- A running instance of [Saleor](https://github.com/saleor/saleor/). - A running instance of [Saleor](https://github.com/saleor/saleor/).
### Installing ### Installing

20020
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -266,20 +266,20 @@
] ]
}, },
"scripts": { "scripts": {
"build-storybook": "env NODE_OPTIONS=--openssl-legacy-provider build-storybook -c src/storybook/ -o build/storybook", "build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -c src/storybook/ -o build/storybook",
"build-types": "graphql-codegen", "build-types": "graphql-codegen",
"prebuild": "npm run build-types", "prebuild": "npm run build-types",
"build": "env NODE_OPTIONS=--openssl-legacy-provider webpack -p", "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack -p",
"check-strict-null-errors": "tsc --noEmit --strictNullChecks | node scripts/count-strict-null-check-errors.js", "check-strict-null-errors": "tsc --noEmit --strictNullChecks | node scripts/count-strict-null-check-errors.js",
"check-types": "tsc --noEmit", "check-types": "tsc --noEmit",
"extract-json-messages": "formatjs extract 'src/**/*.{ts,tsx}' --out-file locale/defaultMessages.json --format scripts/formatter.js", "extract-json-messages": "formatjs extract 'src/**/*.{ts,tsx}' --out-file locale/defaultMessages.json --format scripts/formatter.js",
"extract-messages": "npm run extract-json-messages", "extract-messages": "npm run extract-json-messages",
"fetch-schema": "graphql-codegen --config ./fetch-schema.yml && node scripts/build-schema.js", "fetch-schema": "graphql-codegen --config ./fetch-schema.yml && node scripts/build-schema.js",
"heroku-postbuild": "npm run build", "heroku-postbuild": "npm run build",
"serve:lhci": "NODE_ENV=production npm run server", "serve:lhci": "cross-env NODE_ENV=production npm run server",
"prestart": "npm run build-types", "prestart": "npm run build-types",
"start": "env NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server -d", "start": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server -d",
"storybook": "env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 3000 -c src/storybook/", "storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 3000 -c src/storybook/",
"cy:run": "cypress run", "cy:run": "cypress run",
"cy:run:dashboard": "cypress run --record", "cy:run:dashboard": "cypress run --record",
"cy:open": "cypress open", "cy:open": "cypress open",