Skip to content

Commit

Permalink
Try using conditional for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedWasiHaider committed Feb 8, 2023
1 parent 908178e commit 418068d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"types": "./bin/run generate:types",
"validate": "./bin/run validate",
"lint": "eslint '**/*.ts' --cache",
"subscriptions": "NODE_OPTIONS=--openssl-legacy-provider yarn workspace @segment/destination-subscriptions",
"subscriptions": "NODE_VERSION=\"$(node --version)\"; if test \"$NODE_VERSION\" = \"v18.12.1\" ; then NODE_OPTIONS=--openssl-legacy-provider yarn workspace @segment/destination-subscriptions; else yarn workspace @segment/destination-subscriptions; fi",
"test": "lerna run test --stream",
"test-partners": "lerna run test --stream --ignore @segment/actions-core --ignore @segment/actions-cli --ignore @segment/ajv-human-errors",
"test-browser": "lerna run build:karma --stream && NODE_OPTIONS=--openssl-legacy-provider karma start",
"test-browser": "NODE_VERSION=\"$(node --version)\"; if test \"$NODE_VERSION\" = \"v18.12.1\" ; then lerna run build:karma --stream && NODE_OPTIONS=--openssl-legacy-provider karma start; else lerna run build:karma --stream && NODE_OPTIONS=--openssl-legacy-provider karma start; fi",
"typecheck": "lerna run typecheck --stream",
"alpha": "lerna publish --canary --preid $(git branch --show-current) --include-merged-tags",
"prepare": "husky install",
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-destinations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"build": "yarn clean && yarn build-ts && yarn build-cjs && yarn build-web",
"build-ts": "yarn tsc -b tsconfig.build.json",
"build-cjs": "yarn tsc -p ./tsconfig.build.json -m commonjs --outDir ./dist/cjs/",
"build-web": "NODE_ENV=production ASSET_ENV=production NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js",
"build-web-stage": "NODE_ENV=production ASSET_ENV=stage NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js",
"build-web": "NODE_VERSION=\"$(node --version)\"; if test \"$NODE_VERSION\" = \"v18.12.1\" ; then NODE_ENV=production ASSET_ENV=production NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js; else NODE_ENV=production ASSET_ENV=production yarn webpack -c webpack.config.js; fi",
"build-web-stage": "NODE_VERSION=\"$(node --version)\"; if test \"$NODE_VERSION\" = \"v18.12.1\" ; then NODE_ENV=production ASSET_ENV=stage NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js; else NODE_ENV=production ASSET_ENV=stage yarn webpack -c webpack.config.js; fi",
"deploy-prod": "yarn build-web && aws s3 sync ./dist/web/ s3://segment-ajs-next-destinations-production/next-integrations/actions --grants read=id=$npm_config_prod_cdn_oai,id=$npm_config_prod_custom_domain_oai",
"deploy-stage": "yarn build-web-stage && aws-okta exec plat-write -- aws s3 sync ./dist/web/ s3://segment-ajs-next-destinations-stage/next-integrations/actions --grants read=id=$npm_config_stage_cdn_oai,id=$npm_config_stage_custom_domain_oai",
"clean": "tsc -b tsconfig.build.json --clean",
Expand Down

0 comments on commit 418068d

Please sign in to comment.