From 19097a42cda7853ca95ef11510752d9419c236b6 Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Tue, 14 May 2024 00:41:44 +0530 Subject: [PATCH] cross env added --- package.json | 3 ++- yarn.lock | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 29f310004b..a9759da281 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "start:sdk:local:forcecleanup": "node dev-mode-link-local-sdk.mjs localsdk forcecleanup start", "start:sdk:local:nocleanup": "node dev-mode-link-local-sdk.mjs localsdk nocleanup start", "reset:sdk:prod": "node dev-mode-link-local-sdk.mjs prodsdk forcecleanup nostart", - "build:vercel": "NODE_OPTIONS='--max-old-space-size=32768' && vite build", + "build:vercel": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build", "build": "NODE_OPTIONS=--max-old-space-size=8192 node dev-mode-link-local-sdk.mjs prodsdk cleanup nostart && vite build", "test": "vite test", "deploy:alpha": "node build.mjs alpha && yarn build && echo 'alpha.push.org' > ./build/CNAME && gh-pages -d build -r https://github.com/push-protocol/push-dapp-alpha-deployment", @@ -59,6 +59,7 @@ "chalk": "5.0.1", "compressorjs": "^1.2.1", "constants-browserify": "1.0.0", + "cross-env": "^7.0.3", "crypto-browserify": "^3.12.0", "crypto-js": "4.0.0", "dompurify": "^3.0.2", diff --git a/yarn.lock b/yarn.lock index dfd52d7938..145d5900bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9795,6 +9795,18 @@ __metadata: languageName: node linkType: hard +"cross-env@npm:^7.0.3": + version: 7.0.3 + resolution: "cross-env@npm:7.0.3" + dependencies: + cross-spawn: "npm:^7.0.1" + bin: + cross-env: src/bin/cross-env.js + cross-env-shell: src/bin/cross-env-shell.js + checksum: 10/e99911f0d31c20e990fd92d6fd001f4b01668a303221227cc5cb42ed155f086351b1b3bd2699b200e527ab13011b032801f8ce638e6f09f854bdf744095e604c + languageName: node + linkType: hard + "cross-fetch@npm:^3.0.5, cross-fetch@npm:^3.0.6, cross-fetch@npm:^3.1.4": version: 3.1.8 resolution: "cross-fetch@npm:3.1.8" @@ -9813,7 +9825,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": +"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" dependencies: @@ -17840,6 +17852,7 @@ __metadata: chalk: "npm:5.0.1" compressorjs: "npm:^1.2.1" constants-browserify: "npm:1.0.0" + cross-env: "npm:^7.0.3" crypto-browserify: "npm:^3.12.0" crypto-js: "npm:4.0.0" dompurify: "npm:^3.0.2"