{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "prebuild": "rm -rf dist",
    "build": "tsc --outDir dist",
    "predeploy": "npm run-script build",
    "deploy": "firebase deploy --only functions",
    "test": "jest",
    "lint": "tslint -p tsconfig.json"
  },
  "dependencies": {
    "@firebase/app-types": "^0.3.2",
    "@types/algoliasearch": "^3.24.9",
    "@types/node-fetch": "^1.6.7",
    "algoliasearch": "^3.24.11",
    "express": "^4.16.2",
    "firebase-admin": "~6.0.0",
    "firebase-functions": "^2.1.0",
    "node-fetch": "^1.7.3"
  },
  "private": true,
  "devDependencies": {
    "@types/jest": "^22.1.0",
    "jest": "^22.1.4",
    "ts-jest": "^22.0.1",
    "tslint": "^5.9.1",
    "typescript": "2.7"
  },
  "jest": {
    "transform": {
      "^.+\\.ts$": "ts-jest"
    },
    "testRegex": "src/__tests__/.*\\.(?:js|ts)$",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }
}

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "prebuild": "rm -rf dist",
    "build": "tsc --outDir dist",
    "predeploy": "npm run-script build",
    "deploy": "firebase deploy --only functions",
    "test": "jest",
    "lint": "tslint -p tsconfig.json"
  },
  "dependencies": {
    "@firebase/app-types": "^0.3.2",
    "@types/algoliasearch": "^3.24.9",
    "@types/node-fetch": "^1.6.7",
    "algoliasearch": "^3.24.11",
    "express": "^4.16.2",
    "firebase-admin": "~6.0.0",
    "firebase-functions": "^2.1.0",
    "node-fetch": "^1.7.3"
  },
  "private": true,
  "devDependencies": {
    "@types/jest": "^22.1.0",
    "jest": "^22.1.4",
    "ts-jest": "^22.0.1",
    "tslint": "^5.9.1",
    "typescript": "2.7"
  },
  "jest": {
    "transform": {
      "^.+\\.ts$": "ts-jest"
    },
    "testRegex": "src/__tests__/.*\\.(?:js|ts)$",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  },
  "engines": {"node": "8"}
}

Update runtime to NodeJS 8
Update runtime to NodeJS 8
