From 40a3db3959712246a1cec79a3998eb8f63d85afd Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Thu, 16 May 2024 17:52:37 +0800 Subject: [PATCH] chore(cli): upgrade the node version to 18 --- cli/Dockerfile | 4 ++-- cli/package.json | 19 ++++++++++--------- cli/yarn.lock | 5 +++++ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/cli/Dockerfile b/cli/Dockerfile index 9c3726642..2230122f2 100644 --- a/cli/Dockerfile +++ b/cli/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine AS build +FROM node:18-alpine AS build WORKDIR /app @@ -10,7 +10,7 @@ COPY . ./ RUN yarn build -FROM node:16-alpine AS runtime +FROM node:18-alpine AS runtime WORKDIR /app diff --git a/cli/package.json b/cli/package.json index c4a2817a1..884bb7176 100644 --- a/cli/package.json +++ b/cli/package.json @@ -18,7 +18,7 @@ }, "license": "Apache-2.0", "engines": { - "node": ">=16" + "node": ">=18" }, "dependencies": { "axios": "^0.27.2", @@ -31,6 +31,7 @@ "core-js": "^3.26.0", "js-yaml": "^4.1.0", "json-bigint": "^1.0.0", + "lodash": "^4.17.21", "mqtt": "^4.3.7", "protobufjs": "^7.2.3", "pump": "^3.0.0", @@ -55,14 +56,14 @@ }, "pkg": { "targets": [ - "node16-linux-x64", - "node16-macos-x64", - "node16-win-x64", - "node16-alpine-x64", - "node16-linux-arm64", - "node16-macos-arm64", - "node16-win-arm64", - "node16-alpine-arm64" + "node18-linux-x64", + "node18-macos-x64", + "node18-win-x64", + "node18-alpine-x64", + "node18-linux-arm64", + "node18-macos-arm64", + "node18-win-arm64", + "node18-alpine-arm64" ], "outputPath": "release", "scripts": [ diff --git a/cli/yarn.lock b/cli/yarn.lock index 0a9577d7a..898381eeb 100644 --- a/cli/yarn.lock +++ b/cli/yarn.lock @@ -518,6 +518,11 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + long@^5.0.0: version "5.2.3" resolved "https://registry.npmjs.org/long/-/long-5.2.3.tgz"