Skip to content

Commit

Permalink
chore(cli): upgrade the node version to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed May 16, 2024
1 parent b3bcfcd commit 40a3db3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine AS build
FROM node:18-alpine AS build

WORKDIR /app

Expand All @@ -10,7 +10,7 @@ COPY . ./

RUN yarn build

FROM node:16-alpine AS runtime
FROM node:18-alpine AS runtime

WORKDIR /app

Expand Down
19 changes: 10 additions & 9 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"license": "Apache-2.0",
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"axios": "^0.27.2",
Expand All @@ -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",
Expand All @@ -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": [
Expand Down
5 changes: 5 additions & 0 deletions cli/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 40a3db3

Please sign in to comment.