From 1c6eb66745e6dbef9c3496e98c534568ad3e7565 Mon Sep 17 00:00:00 2001 From: Lynn Romich Date: Sun, 25 Feb 2024 14:28:30 +0100 Subject: [PATCH] feat: upgrade to Node.js 18 --- Dockerfile | 2 +- docker-compose.yml | 2 +- package.json | 22 +++++++++++----------- yarn.lock | 15 +++++++++++---- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce9c330..5e44a74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 +FROM node:18 WORKDIR /usr/src/app diff --git a/docker-compose.yml b/docker-compose.yml index 504a8ac..4a84c2f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: shinoa: - image: node:16 + image: node:18 ports: - 8080:4000 command: /bin/sh -c "yarn && yarn dev" diff --git a/package.json b/package.json index 4a77c35..40fa55a 100644 --- a/package.json +++ b/package.json @@ -5,17 +5,6 @@ "repository": "https://github.com/omegavesko/shinoa-next.git", "author": "Veselin Romić ", "license": "MIT", - "devDependencies": { - "@types/cron": "^2.0.0", - "@types/lodash": "^4.14.168", - "@types/mime-types": "^2.1.0", - "@types/natural": "^5.1.0", - "@types/node": "^16", - "nodemon": "^2.0.7", - "prisma": "3", - "ts-node": "^10.4.0", - "typescript": "^4.2.4" - }, "scripts": { "dev": "nodemon", "build": "tsc" @@ -43,5 +32,16 @@ "pino": "^8.0.0", "pino-pretty": "^8.0.0", "tiny-typed-emitter": "^2.1.0" + }, + "devDependencies": { + "@types/cron": "^2.0.0", + "@types/lodash": "^4.14.168", + "@types/mime-types": "^2.1.0", + "@types/natural": "^5.1.0", + "@types/node": "^18", + "nodemon": "^2.0.7", + "prisma": "3", + "ts-node": "^10.4.0", + "typescript": "^4.2.4" } } diff --git a/yarn.lock b/yarn.lock index 8a88cc8..472fc8c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -580,10 +580,12 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== -"@types/node@^16": - version "16.11.41" - resolved "https://registry.npmjs.org/@types/node/-/node-16.11.41.tgz#88eb485b1bfdb4c224d878b7832239536aa2f813" - integrity sha512-mqoYK2TnVjdkGk8qXAVGc/x9nSaTpSrFaGFm43BUH3IdoBV0nta6hYaGmdOvIMlbHJbUEVen3gvwpwovAZKNdQ== +"@types/node@^18": + version "18.19.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.18.tgz#7526471b28828d1fef1f7e4960fb9477e6e4369c" + integrity sha512-80CP7B8y4PzZF0GWx15/gVWRrB5y/bIjNI84NK3cmQJu0WZwvmj2WMA5LcofQFVfLqqCSp545+U2LsrVzX36Zg== + dependencies: + undici-types "~5.26.4" "@types/qs@*": version "6.9.7" @@ -2997,6 +2999,11 @@ underscore@^1.9.1: resolved "https://registry.npmjs.org/underscore/-/underscore-1.13.4.tgz#7886b46bbdf07f768e0052f1828e1dcab40c0dee" integrity sha512-BQFnUDuAQ4Yf/cYY5LNrK9NCJFKriaRbD9uR1fTeXnBeoa97W0i41qkZfGO9pSo8I5KzjAcSY2XYtdf0oKd7KQ== +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + unique-string@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d"