From 29bcfca56dece2cd85596ac9837642abd5439362 Mon Sep 17 00:00:00 2001 From: Jaroslaw Michalski Date: Wed, 11 Oct 2023 11:43:30 +0100 Subject: [PATCH] remove unwanted code --- package.json | 2 +- scripts/node_heap_size.sh | 3 --- scripts/patchUrls.js | 7 ------- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100755 scripts/node_heap_size.sh diff --git a/package.json b/package.json index 0a274193..64c12dbf 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "lint": "yarn flow", "start": "unset HOST && react-scripts start", "build": "unset HOST && export NODE_OPTIONS=--max-old-space-size=8192 && react-scripts build", - "postbuild": "chmod +x scripts/node_heap_size.sh && ./scripts/node_heap_size.sh && node scripts/patchUrls.js --max-old-space-size=3072", + "postbuild": "node scripts/patchUrls.js --max-old-space-size=3072", "ppostbuild": "react-snap", "test": "react-scripts test", "eject": "react-scripts eject" diff --git a/scripts/node_heap_size.sh b/scripts/node_heap_size.sh deleted file mode 100755 index 25659189..00000000 --- a/scripts/node_heap_size.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -node -e 'console.log(`*** NODE HEAP LIMIT = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)' \ No newline at end of file diff --git a/scripts/patchUrls.js b/scripts/patchUrls.js index b8524387..6b3ff652 100644 --- a/scripts/patchUrls.js +++ b/scripts/patchUrls.js @@ -127,14 +127,7 @@ const main = async () => { ...filterEnvVars() }; - console.log("vars:", Replacements) - console.log("vars number:", Object.keys(Replacements).length) - - let counter = 0; - for ( const file of files ) { - counter += 1; - console.log(counter, " - processing file:", file) const tmpFile = `${ file }.tmp`;