From 950852a1b88596d4b0e5ad54b05a24d79acfd7a4 Mon Sep 17 00:00:00 2001 From: Rhys Bartels-Waller Date: Wed, 4 Nov 2020 00:56:03 +1100 Subject: [PATCH] chore: upgrade to Node.js 14 --- .nvm | 1 + Dockerfile | 5 +++-- Jenkinsfile | 2 +- package.json | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .nvm diff --git a/.nvm b/.nvm new file mode 100644 index 00000000..f21e920f --- /dev/null +++ b/.nvm @@ -0,0 +1 @@ +v14.5.0 diff --git a/Dockerfile b/Dockerfile index 1afb98a3..1636f36e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM node:10.15.3-alpine as builder +FROM node:14.15.0-alpine as node_alpine +FROM node_alpine as builder RUN apk add --update python make g++ yarn RUN mkdir /application COPY package.json yarn.lock .yarnrc /application/ @@ -13,7 +14,7 @@ COPY packages/util-dev /application/packages/util-dev RUN yarn --offline --frozen-lockfile --non-interactive RUN yarn build -FROM node:10.15.3-alpine as production_deps +FROM node_alpine as production_deps RUN mkdir -p application/packages COPY package.json yarn.lock .yarnrc /application/ COPY --from=builder /application/packages-cache /application/packages-cache diff --git a/Jenkinsfile b/Jenkinsfile index 59c96eb5..128bae21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any - tools {nodejs 'Node 10'} + tools {nodejs 'Node.js 14'} // Lock concurrent builds due to the docker dependency options { diff --git a/package.json b/package.json index b3ecb662..413a0113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "cardano-graphql", "description": "A TypeScript monorepo. Includes a server package and API modules for flexible implementation", + "engines": { + "node": "^14" + }, "version": "2.2.0", "private": true, "workspaces": [