diff --git a/Dockerfile.template b/Dockerfile.template index 6a4931fc..a10209e5 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,12 +1,12 @@ ARG ARCH=%%BALENA_ARCH%% ARG FATRW_VERSION=0.2.9 -ARG NODE="nodejs<18" -ARG NPM="npm<9" +ARG NODE="nodejs>16" +ARG NPM="npm>8" ################################################### # Build the supervisor dependencies ################################################### -FROM alpine:3.16 as build-base +FROM alpine:3.18 as build-base ARG ARCH ARG NODE diff --git a/package-lock.json b/package-lock.json index aced4a5b..d83fcc34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "@types/mocha": "^8.2.3", "@types/mock-fs": "^4.13.1", "@types/morgan": "^1.9.3", - "@types/node": "^16.11.63", + "@types/node": "^18.11.7", "@types/request": "^2.48.8", "@types/rewire": "^2.5.28", "@types/rimraf": "^2.0.5", @@ -1485,9 +1485,9 @@ } }, "node_modules/@types/node": { - "version": "16.11.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.63.tgz", - "integrity": "sha512-3OxnrEQLBz8EIIaHpg3CibmTAEGkDBcHY4fL5cnBwg2vd2yvHrUDGWxK+MlYPeXWWIoJJW79dGtU+oeBr6166Q==", + "version": "18.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.7.tgz", + "integrity": "sha512-LhFTglglr63mNXUSRYD8A+ZAIu5sFqNJ4Y2fPuY7UlrySJH87rRRlhtVmMHplmfk5WkoJGmDjE9oiTfyX94CpQ==", "dev": true }, "node_modules/@types/object-hash": { @@ -14734,9 +14734,9 @@ } }, "@types/node": { - "version": "16.11.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.63.tgz", - "integrity": "sha512-3OxnrEQLBz8EIIaHpg3CibmTAEGkDBcHY4fL5cnBwg2vd2yvHrUDGWxK+MlYPeXWWIoJJW79dGtU+oeBr6166Q==", + "version": "18.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.7.tgz", + "integrity": "sha512-LhFTglglr63mNXUSRYD8A+ZAIu5sFqNJ4Y2fPuY7UlrySJH87rRRlhtVmMHplmfk5WkoJGmDjE9oiTfyX94CpQ==", "dev": true }, "@types/object-hash": { diff --git a/package.json b/package.json index e9e9da61..0d7420ea 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,8 @@ "systeminformation": "^5.6.10" }, "engines": { - "node": "^16.17.0", - "npm": "^8.15.0" + "node": ">=16.17.0", + "npm": ">=8.15.0" }, "devDependencies": { "@balena/contrato": "^0.6.0", @@ -63,7 +63,7 @@ "@types/mocha": "^8.2.3", "@types/mock-fs": "^4.13.1", "@types/morgan": "^1.9.3", - "@types/node": "^16.11.63", + "@types/node": "^18.11.7", "@types/request": "^2.48.8", "@types/rewire": "^2.5.28", "@types/rimraf": "^2.0.5", diff --git a/tsconfig.json b/tsconfig.json index 28e5bc66..28682559 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": "./", - "target": "ES2021", + "target": "ES2022", "module": "commonjs", "moduleResolution": "Node16", "strict": true,