From c88930309f9915b8975fd3f6735cd1863e1fd4ce Mon Sep 17 00:00:00 2001 From: Coteh <3276350+Coteh@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:55:41 -0400 Subject: [PATCH] Attempt to address OOM issue when running webpack on Fly --- Dockerfile | 2 +- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2ec33a4c..b443d679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 +FROM node:16 WORKDIR /usr/src/simpleimage diff --git a/package-lock.json b/package-lock.json index 50a322ba..839f76c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,7 @@ "cross-fetch": "^3.1.5", "cypress": "^10.11.0", "cypress-real-events": "^1.8.1", - "husky": "^7.0.4", + "husky": "^8.0.3", "mocha": "^10.2.0", "mocha-junit-reporter": "^2.2.0", "mongodb-memory-server": "^6.7.0", @@ -5893,15 +5893,15 @@ } }, "node_modules/husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true, "bin": { "husky": "lib/bin.js" }, "engines": { - "node": ">=12" + "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -16338,9 +16338,9 @@ "dev": true }, "husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true }, "iconv-lite": { diff --git a/package.json b/package.json index a1b6482e..c304ea6b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "James Cote (Coteh)", "main": "app.js", "scripts": { - "prepare": "husky install", + "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"", "build:client": "webpack", "heroku-postbuild": "webpack -p", "start": "node app.js", @@ -61,7 +61,7 @@ "cross-fetch": "^3.1.5", "cypress": "^10.11.0", "cypress-real-events": "^1.8.1", - "husky": "^7.0.4", + "husky": "^8.0.3", "mocha": "^10.2.0", "mocha-junit-reporter": "^2.2.0", "mongodb-memory-server": "^6.7.0",