From 9f5a930569c17dedfa41fb9c38aa73bb0c1bc834 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Mon, 22 Apr 2019 16:50:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20functions=20to?= =?UTF-8?q?=20Node=2010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- functions/package.json | 3 +++ functions/tsconfig.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 46d08402..dbc90723 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js -node_js: 8 +node_js: 10 before_script: - yarn global add greenkeeper-lockfile@1 diff --git a/functions/package.json b/functions/package.json index 93ff8b06..fc7cffc9 100644 --- a/functions/package.json +++ b/functions/package.json @@ -21,5 +21,8 @@ "scripts": { "build": "tsc && cp service-account.json ./dist", "deploy": "npm run build && firebase deploy --only functions" + }, + "engines": { + "node": ">=10" } } diff --git a/functions/tsconfig.json b/functions/tsconfig.json index bcadc3ef..1006ceae 100644 --- a/functions/tsconfig.json +++ b/functions/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "outDir": "./dist", "module": "commonjs", - "target": "es2015", - "lib": ["es6"], + "target": "es2018", + "lib": ["es6", "esnext"], "sourceMap": true, "allowJs": true, "jsx": "react",