Skip to content

Commit 333d086

Browse files
Upgraded typescript-getting-started sample to ES2017 syntax and Node 8.
1 parent dbaa498 commit 333d086

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

typescript-getting-started/functions/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parserOptions": {
33
// Required for certain syntax usages
4-
"ecmaVersion": 6
4+
"ecmaVersion": 2017
55
},
66
"plugins": [
77
"promise"

typescript-getting-started/functions/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"deploy": "firebase deploy --only functions",
2020
"logs": "firebase functions:log"
2121
},
22+
"engines": {
23+
"node": "8"
24+
},
2225
"main": "lib/index.js",
2326
"private": true
2427
}

typescript-getting-started/functions/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"lib": ["es6"],
3+
"lib": ["es2017"],
44
"module": "commonjs",
55
"noImplicitReturns": true,
66
"outDir": "lib",
77
"sourceMap": true,
8-
"target": "es6"
8+
"target": "es2017"
99
},
1010
"compileOnSave": true,
1111
"include": [

0 commit comments

Comments
 (0)